Try
echo get_post_meta($home_starting_player, $pb_squad_number, true);
The code you have returns an array; the third parameter specifies a single value.
Related Posts:
- How to sanitize select box values in post meta?
- Strategy to get post meta for use outside the loop
- Set Expiration Date of a Post from the Frontend with wp_insert_post
- Is there a need for nonce with Post Metabox?
- Metadata Query when storing data as array possible?
- Wp Super Cache stops the update of a Post Meta
- Running a function on post update with new post meta
- Is it possible to set a variable for get_post_meta?
- Get attachment meta (I need attachment ID, unsure how to find it)
- How can I sort my loop based on meta data, using a form?
- Related Post Category Filter
- Make a custom field in admin post.php read only
- Change default options on attachment page
- After a while attachment meta data is missing “sizes” data
- Why is my Toggle field not showing in Gutenberg?
- WordPress API Menu/Submenu Order
- What is the difference between wp_register_sidebar_widget and register_widget?
- What WP folder can I use to write files to?
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- Can’t get staging site to display same way as live site. Completely stumped
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Display a different theme for not logged-in users
- how to test a theme upgrade
- Best practice (forward compatibility) for theme options
- How to add paging to query
- what’s meaning of it when submit a theme?
- How to Modify a Widgets UL and/or LI Classes
- How to remove menus section from WordPress theme customizer
- Returning Variables back into a template
- How to handle thumbnails
- How to add custom template tag in wordpress theme?
- Doubled titles when using All in One SEO with custom template
- In theme development, are there functions which write HTML in a standard fashion to reduce “spaghetti code”?
- Checking if there is an Image inserted – if not don’t display anything
- What page should I use for a contact form?
- Get attachments by user
- Retrieve data using wpdb to use for customizer controls
- Appending a value to metabox before and after saving
- Modify the Additional CSS section (adding a disclaimer)
- I made a my own theme to WordPress and Admin Menu missing from frontend
- What program can I use to preview my wordpress site?
- I want edit_post_link() to open in a new window/tab (target=”_blank”)
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- How to store functions in… functions.php?
- Simple way to get two language WP site
- get_page_template returning nothing
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- jQuery not available to other scripts
- Override template file i subfolders
- Does the switch_theme action run when you’re upgrading a theme?
- How to obtain the html stripped version of $category->description?
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- How to jump to newly posted comment anchor after submit?
- Best way to develop a new theme on a live site, with new content? [closed]
- Tag Page Not Listing All Posts With Tag
- Can I use WooCommerce in a headless CMS setup?
- Plugin does not work in custom theme
- How to Manually Code Shortcode?
- How to show a manageable list of images on a post?
- Making custom woo themes
- Where does the uploaded image go?
- Remove link on full-size images
- How to reset post data properly
- Theme options save routine clashes with plugin save
- get_search_query() not working with search queries with ampersand in it
- Where to put custom page templates in theme?
- If user is logged in and has a role echo statement
- Fixed button and slideshow in template upload per page
- Let user to add input fields on theme option page
- Non-standard (new) theme file
- .current_page_ancestor broken in Twenty Eleven
- MapPress Easy Google Map in Jquery Tabs Problem
- Homepage slider not using correct images
- WordPress Show Single Post on Home Page with previous/ Next Button
- Is there any way to store single.php wordpress file into a php variable
- How to change listing type permlink?
- WordPress theme header.php should I add title meta?
- Problems with cart and pages on _s theme
- Custom post type query with pagination doesn’t work
- Fatal error: Class WP_Customize_Image_Control not found
- How do I remove header/page-title image in farvis theme? [closed]
- Which theme PHP file should be edited in order to change Posts appearance
- How to hide blog by id wordpress multisite listing
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- How to override wordpress native options with theme options
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Problem with multiple menus in theme
- How to create multiple sidebar areas with a forloop and register_sidebars?
- How to convert that page to a wordpress template? [closed]
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server
- Which function(s) to build a paged HTML table
- white spaces on the all sides [closed]
- How to Enable Hot Module Replacement with Webpack