Please try below code and check if ‘sound_s‘ key exists in the array or not
$file_id = get_post_meta($post_id);
echo "<pre>";
print_r( $file_id );
exit;
Related Posts:
- Grossly inefficient wordpress loops!
- Displaying custom posts only if custom meta box’s date is not expired
- get_template_part() – post-meta not working?
- Create a random unique 6 digit number as custom field for custom post type
- Meta Key Value in current-user-only loop
- Create Array from custom post type to display a slider
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- get_post_meta for Custom Post Type ( CPT )
- How to create content automatically when a post is published?
- How do you get the count of posts in an archive page?
- How to show Y number of custom posts after every X normal posts?
- How do I Paginate Search Results for Custom Post Types?
- Ordering posts having multiple post-meta date fields
- Archive page…limiting posts per page
- Adding custom post type to loop
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- How to show related posts by category or custom post type?
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Posts navigation in custom post type single.php not working
- How to list custom post types?
- Display custom field of specific post where post title matches variable
- Remove duplicated values from a loop
- How to connect two custom post types with nested loops
- Normal pages as children of my Custom Post Type
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Insert Multiple Post with Same Publish Button
- Creating select dropdown with parent-level custom post types
- Undefined Variable – Custom Post Type Meta
- Custom Post Type Loop throws 500 error when used in widget
- Post image in WordPress not appearing on home page
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Getting meta in editor plugin, and event triggering issue
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Metabox not show in categories custom post type cmb2
- Display Custom Taxonomy Alphabetically
- Problem: wp_query outputs all images on site
- The loop seems stuck to a single (now deleted) post
- Custom Post Types strange pagination problem
- Listing all term items alphabetically / sorting loop
- Display related custom taxonomy posts in sidebar
- Custom fields for custom post type
- Targeting custom post type
- Conditional for a Single Post That Belongs to a Category?
- Using wp_query to modify the loop in index.php for a CPT
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- How to Echo Metadata Value in Currency Format
- Two column layout with alphabetical ordering
- Listing custom post types on archive page with array
- looping though custom post types and only return results in a given taxonomy
- How to conditionally add Custom Post Type to Front Page
- Pagination not working on custom query on a page
- get custom post type value in header.php [closed]
- get_post_meta returns NULL in front-end, but correct result in back-end
- get_terms() parent, child and grandchild
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- HM CMB: Post Select Field for CPT ID
- pre_get_posts works in post type archive but not in single post
- Custom PT, Taxonomys and wordpress query
- Problem Saving Custom Post Type Meta Values
- How can i loop through custom post type according to custom meta field?
- Changing WordPress sort order for returned child pages
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Page that lists publications by classifying them by taxonomy
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- Exclude a specific post in a Custom Post Type
- Filtering posts based on three taxonomies
- Add extra elements to the_post in a custom post_type
- Custom Post Type has wrong label and is not found when called by a loop
- Peepso: Add extra data field (custom post meta) to postbox
- Error in the page of a CPT file in WordPress
- add action save post type and update post meta woocommerce
- get_post_meta not working with variable as a post_id for dynamically get the postid
- List all posts associated under custom taxonomy
- Custom taxonomy template for custom fields loop [closed]
- How to show terms used only for particular custom post type. Filter creation perpose
- Add more custom fields when creating a new custom post type
- 2 custom posts types, in their own columns, one pagination for both
- Custom post type with custom taxonomy permalinks
- Disable Facebook Comments Automatically On CPT
- Pagination on custom post types
- Problem with ‘save_post’ hook not running
- How to get past and upcoming post by defining date in custom field?
- Edit post meta direct from post.php?
- How to query all custom posts of a certain type and checking what category they have
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Post data in separate divs with incrementing class using WP_Query
- Redirection loop error after login from a custom post type post
- Load different template for CPT (in loop) in my plugin?
- Top 30 Songs using Custom Post Type
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- Advice Needed for Post Meta Database Efficiency
- How to exclude certain portfolios from a loop
- Use a Variable in update_post_meta as the $meta_key
- How to create custom page templates with default page layout framework?