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
- Assign posts to taxonomy terms instead of the taxonomy terms to posts?
- clients list using wordpress
- 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?
- 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
- Custom post type / custom fields
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Linking three taxonomies with ACF
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Query Custom Post Types by date (custom field) range
- Custom Posts Hierarchy? (State/City/Restaurant)
- 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
- 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?
- Custom Post Type Taxonomy Filters
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Show custom post type relationships by taxonomy
- Query custom post type with ACF Date
- Meta Query Not Returning Output Despite Having Matching Values
- ACF From & To Date Validations
- Order Custom Post Type by Custom Field Value
- How to conditionally redirect to the post from a taxonomy page?
- Hierarchy and access control for Custom Post Types (CPT)
- 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)
- Search Tool only refreshes Page without showing results
- 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
- Show fields based on taxonomy selection in editor
- Permalinks: custom structure for taxonomy – tags?
- Creating custom post type with custom taxonomy and custom fields programatically
- How to list tags from custom post type attachments?
- How to inherit field value from parent post into in child / sub post
- 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
- posttype and custom fields on multisite
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- How to fetch custom post types with its full data on wordpress?
- 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
- Custom Post type Query by Taxonomy
- Excerpt length: get first paragraph
- Order custom posts by taxonomy, then by meta_key
- 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?
- Custom front-end form for adding post – Category problem
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- Display Posts that fit a certain criteria on Category pages
- Filter posts by their related field’s custom field
- wp_insert_post deleting previous post custom meta
- If ACF Post Object post has custom taxonomy term…
- I want to create a metabox under custom taxonomy
- Taxonomy shows up twice on Custom Post Type
- Permalink URL connection between two custom types
- Query posts by multiple custom fields
- Error get_posts with Custom Taxonomy and OR relation
- Create Inclusions and exclusions
- 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
- How to query posts by meta keys AND under specific category?
- predefined custom field on registration page
- Show Custom Post Type taxonomy term that matches custom field
- Linking custom taxonomies and posts
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- Order by custom field attribute
- Advanced Custom Fields: query posts filtered by multiple field values
- Custom post type and custom taxonomy archive inaccessible
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes