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
- Importing hard coded custom field into acf field
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Using a variable in is_page(array())
- Random order of WP_Query results with highest meta value
- tracking number field in Woocommerce order [closed]
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- How do I get current page ID in WordPress customizer file?
- Customizer: Output default value in Customizer CSS
- How to load a template-part based on a url wildcard?
- WordPress does not load page.php, return 404.php
- How can i upload images in an admin page?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Multiple WordPress Menus that will only display all pages
- Set the checkbox as checked by default at options page
- The text box have space character
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- how to remove metadata from the posts of my blog?
- Add child pages of parent to navbar PHP
- Load a page into a div with Ajax
- Trying to remove post thumbnail with plugin
- Randomly Assign an Image’s Alt Text Based on Data From Post
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Passing the custom field values in the wp_get_current_user array function
- Theme Options Page – User Updates Logo
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- Converting HTML Template to WordPress Theme
- Sort posts by custom fields value using dropdown menu
- How to use my style.css file outside of wordpress subdomain?
- How to show part of the_content?
- Wp-login appears White Screen, Error: Cannot modify header information
- Custom profile field with birthday. Troubles with
- How to remove the cufon script from Dzonia Lite theme [closed]
- get_the_tags() not iterating through for/while loop, but will with foreach
- WordPress – Display array data of a child
- Query & Order posts by custom fields
- Hide categories that are not used in the post type
- How do I add custom bulk actions to multiple custom post types?
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Sort custom meta column by other meta value
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- what is the best practice to add new field to an api route
- Grab posts by multiple categories
- Can’t access variable outside for loop
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- add custom link to wordpress media gallery modal
- Creating user status mode in WordPress
- get_post_meta not working on publishing
- Need help with Google drive API [closed]
- Avoid parallax images hardcoding
- Improve page speed loading using CDN and async or defer attribute
- Firing schema via code in functions.php doesn’t work
- Adding number to date not working [closed]
- populate form fields in a loop with ajax
- How can I add extra word in permalink when someone click download button?
- Error in custom php function doesn’t exist
- Customizer: active_callback and sanitize_callback incompatibility?
- Saving and Restoring a Canvas on A Individual User Basis
- post created but no permalink
- Seach custom post type posts only by meta fields?
- How to use thumbnail size of image if I’m only using src to get image