I managed to solve my issue by looping through a get_the_terms() function. In my case, I’ve also created a shortcode.
function display_taxonomy() {
$prognoses = get_field('prognosis');
ob_start();
if( $prognoses ):
foreach( $prognoses as $prognosis ):
$terms = get_the_terms( $prognosis->ID , 'my_custom_taxonomy' );
foreach ( $terms as $term ):
echo $term->name;
endforeach;
endforeach;
endif;
return ob_get_clean();
}
add_shortcode( 'my_custom_taxonomy_shortcode', 'display_taxonomy' );
Related Posts:
- Display Custom Field or Custom Taxonomy in front page /post/product
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- Get Custom Field Values by Another Custom Field in WordPress
- Retrieve value of a category’s custom field
- How to group posts and get a mixed posts and groups view?
- How to get_term_meta on single custom post?
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- WP_Query not using custom taxonomy categories on custom post type
- Storing/querying custom date data
- Custom Sort Order for Custom Post Type Taxonomy
- Advanced search form with filters for custom taxonomies and custom fields
- How to Add Custom Fields to a Custom Post Type?
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- clients list using wordpress
- Filtering a WP_Query meta_query by numeric values isn’t working
- Custom Taxonomy Template Post List with Sort Order
- Exclude from search all custom posts which are NOT in a taxonomy term
- How to do a custom bookmarks post type?
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- How to sort a table of custom posts by column containing custom field
- get terms that have post with custom post type between 2 values
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- How to add custom fields to admin UI and REST API response?
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- Linking three taxonomies with ACF
- Query Custom Post Types by date (custom field) range
- Automatically populate a hierarchical taxonomy from a custom field
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Custom Post type and Custom Field WP_Query
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- How to change post featured image using a custom field of category?
- get_posts of Custom Post Type AND Custom Taxonomy
- Get posts by querying taxonomy and certain terms of the taxonomy?
- How can I dynamically add a post to a custom post type which uses a custom field?
- WP_Query order by custom field, then randomly order some of results
- Show custom post type relationships by taxonomy
- Meta Query Not Returning Output Despite Having Matching Values
- ACF From & To Date Validations
- How to render a custom post type template with custom fields using shortcode
- How to conditionally redirect to the post from a taxonomy page?
- First custom field value (out of several) displayed twice after query
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Multiple Frontend Filters Using Advanced Custom Fields
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- Custom post type’s extra fields – how to handle?
- List of users that clicked a ‘Join’ button at single post
- How to list tags from custom post type attachments?
- Targeting categories in custom fields
- Custom taxonomies to define versions of a product
- Custom Taxonomy Search result page
- Custome fields not displayed
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- How to define the template for custom posts?
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Custom post type name and assigning custom taxonomy
- Group by custom field value (start and end times)
- Custom post types, disable fields
- Building a Portfolio and need some direction
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Single.php for Custom Post Type > Taxonomy > Term
- Excerpt length: get first paragraph
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- add_filter get array data before display in custom post_type
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- Filter posts by their related field’s custom field
- wp_insert_post deleting previous post custom meta
- Taxonomy shows up twice on Custom Post Type
- Adding a Section for Visitors
- Query posts by multiple custom fields
- Custom taxonomy template for custom fields loop [closed]
- Error get_posts with Custom Taxonomy and OR relation
- Best way to have one product in both rental and sale parent category
- Create Inclusions and exclusions
- How do I display specific custom posts, and how do I edit a post’s singular page?
- What’s the most efficient way to get two queries based on an if statement?
- Automatically convert standard posts with custom fields to custom post types
- Best way to use Category & Custom Fields?
- Get month and day from a Date Picker custom field
- predefined custom field on registration page
- Show Custom Post Type taxonomy term that matches custom field
- Linking custom taxonomies and posts
- Order by custom field attribute
- Advanced Custom Fields: query posts filtered by multiple field values
- Advanced search form with filters for custom taxonomies and custom fields
- Custom post type and custom taxonomy archive inaccessible
- How to change order of custom post types. I want Featured post to come first
- Retrieve a post with its ACF repeater fields in wordpress
- Custom taxonomy meta fields
- Meta query with ACF relationship field
- Creating subpages for each custom post type
- How to automatically update ACF field value every year?