You need to get the title for each post ID in your array. The straightforward way is this:
$procedure_title_list = array();
$procedure_list = get_post_meta($patient_story->ID, 'Procedure', false);
foreach ( $procedure_list as $procedure ) {
$procedure_title_list[] = get_the_title( $procedure );
}
echo implode( ', ', $procedure_title_list );
Related Posts:
- How to update custom fields using the wp_insert_post() function?
- How to display multiple Post meta_key/meta_values by SQL query
- How to use multiple query with same meta key
- How can update custom meta for all posts
- Use ajax to update_post_meta
- how to increase custom post value by one most efficiently?
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Need Help Fixing My Iframes [closed]
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Trying to retrieve post meta
- Is it possible to retrieve all posts with a certain value for metadata?
- Non-Closing PHP Query in WordPress Loop
- how to get serialized post meta
- Hide Heading if ACF Field is empty
- WordPress loop by meta key that is an array? and how loop multiple arrays
- How to store multiple custom meta box
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Define category ID using get_post_meta
- Hide a div when a custom field is empty
- WordPress stripping out custom field tags
- Order category posts by last word of custom field
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- How to update custom fields when post is published?
- WP post meta – for loop inside for loop
- When working with a post, almost all wp_postmeta are deleted
- What syntax is this? “{{post.price}}”
- Updating Lat and Lng of posts automatically gives sporadic results
- If custom field doesn’t exist, or exists and it’s true show title?
- Metadata on the WP_Post object
- Include a external PHP file into a WordPress Custom Template
- How to remove hardcoded characters from playlists?
- function_exists call in function.php
- Debugging an error: wp_enqueue_style was called incorrectly
- the_post_thumbnail() based on the Post ID
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- How can i create a function to get youtube video time
- Getting movie and serial on actor page
- Why is my get_post_meta always empty
- Geocoding an Exploded Custom Field Array
- Remove css styles from specific page
- PHP Customization: Taxonomies and Queries, why? [closed]
- WooCommerce: update custom fields after checkout validation failure
- My Own layout in WooCommerce pages [closed]
- Use WP_Query in shortcode
- Random order of WP_Query results with highest meta value
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- How to use my style.css file outside of wordpress subdomain?
- How to remove the cufon script from Dzonia Lite theme [closed]
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Improve page speed loading using CDN and async or defer attribute
- Seach custom post type posts only by meta fields?
- Populate editor with some content of a page with a page template
- Displaying recent posts on static page with template-part via shortcode
- Skt full width basic slideshow problem
- conditional logic for front-end custom field edits
- get_template_part for specific page
- How do I create my own .php file with a code part and echo it on different pages?
- Which PHP page is the Default Posts Page
- get_template_part() not firing within a switch statement when template has new WP_Query
- How to show/hide php table rows based on the content of custom fields
- How to call multiple functions from multiple files into a WordPress page template [closed]
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- What is the best way to define constant options for a theme?
- Warning: printf(): Too few arguments in helpers.php file
- Conditional featured image with youtube thumbnail
- get_page_templates only return templates with “home” in the filename
- Show different website layout if no sidebar added
- Get attachment meta (I need attachment ID, unsure how to find it)
- Display additional user fields
- How do you remove header sitewide from mobile only?
- How to check post meta isset or not empty during publish/save post?
- PHP inside echo HTML
- Trying to update Woocommerce meta values
- How to add and subtract user meta values after post meta update
- get_post_meta shortcode returns empty field
- Check if current post in loop is last on current page
- How to Call on WordPress Custom Fields without a Plugin
- How to change PHP variables with AJAX request in WordPress
- is_user_logged_in returns false when I access certain pages
- REST API custom endpoint to fetch pages and posts not working
- Exclude category from woocommerce product category list
- Trying to get pagination working on WP_Query() post grid
- Save custom field on WP_List_Table
- Fix hover images blink
- custom fields anchor points php
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Problems with the WordPress loop [closed]
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Calling PHP function doesn’t work in index.php
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- Listing current pages subp page in list items in the sidebar
- Trying to display ads on only a third of posts in a loop. Keep getting Error 500?
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- Add CSS class to PHP Statement
- Query posts by custom fields (object post)
- Load slideshow.css file only if Slideshow is checked / on