I believe this has already been answered perfectly in How can I get only parent terms?.
The solution is to set 'parent' => 0
when querying terms with get_terms()
or WP_Term_Query
. The example from that question looked like this:
$myterms = get_terms( array( 'taxonomy' => 'taxonomy_name', 'parent' => 0 ) );
You can easily loop over the result and in it retrieve the fields you mentioned.
Hope that helps! If you need more guidance, please let me know and I can look into expanding my answer a bit.
Related Posts:
- Operations with custom fields values in a loop
- How do I exclude a custom taxonomy from the post loop
- Order get_terms using a Custom Field
- Display category posts grouped by taxonomy
- display posts with same taxonomy term
- Get value in custom field with taxonomy [closed]
- Including all terms in wordpress tax_query
- Display one post from each term in a custom taxonomy [closed]
- Remove Category description textarea
- Is it possible to sort the post based on a custom field?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Custom Taxonomy Images with Advanced Custom Fields
- Advanced custom fields – taxonomy terms images [closed]
- Displaying ACF image field [closed]
- How to handle “the_terms” inside loop
- Modify main loop in taxonomy archive page
- All posts are still shown when adding category argument to query
- ACF vs Taxonomies
- Specifying a size when displaying an image associated with a taxonomy through ACF
- echo current taxonomy id for this loop?
- How do I Use Multiple Loops with WP_Query?
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- How can marge these loop code?
- How do I display a list of posts under all hierarchical children of the current taxonomy?
- Posts in loop displaying all taxonomies
- How to add contents of a custom field to a taxonomy term list?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Search Tool only refreshes Page without showing results
- where is the 4th taxonomy terms? taxonomy terms is disaapearing in the loop
- Display value of custom field of custom taxonomy in single post?
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- Display all posts that use a custom taxonomy
- WordPress implode & wp_insert_post question
- If Custom Taxonomy
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Returning One custom taxonomy term name
- Exclude taxonomy term from all loops, but having it on widget
- Using WP_Query and Query_post for the loop?
- Website loading slowly – Advanced Custom Fields images
- Display a colour of custom taxonomy on the page
- Can’t get taxonomy ID for each post on archive page
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- Loop through custom taxanomy in post and display custom fields from posts
- query to use to link to taxonomy single page
- List terms of custom taxonomy if matches other taxonomy
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Only display latest custom taxonomy post
- how to get the post id in the option tag
- How to get the term description in a taxonomy term archive query?
- Chaining Taxonomy Queries
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Problem with sorting in custom child taxonomy archive page
- Echo ACF taxonomy field within a foreach for another taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- new custom filed not showing in taxonomy
- Group posts in a category based on tags in custom taxonomy
- Connect ACF field + custom taxonomy [closed]
- How to loop custom posts that have an exact match in taxonomy terms?
- Some posts not displaying by taxonomy term
- Adding Advanced Custom Fields to posts
- Get post meta value outside of the loop
- ACF Field, hide taxonomy title and image when no nothing selected in post
- ACF – Get unique values of array
- Remove Custom metabox from particular page template is used
- ACF Custom field not showing in Timber Taxonomy page
- Custom taxonomy shows full articles
- Is it possible to sort the post based on a custom field?
- Output slugs to use as class names for every taxonomy a post is attached to
- WordPress search form and search result through ACF field in custom taxonomy
- Multi level archive
- How to show selected check box vendors on front end home page?
- List active taxonomy terms
- Creating a list with multiple categoreis and options
- sort Posts by custom user filed
- How to get name of custom taxonomy
- Query pages by child term
- Taxonomies, Adanced Custom Fields and Repeatable Fields
- Query Number of Loaded Posts in Loop
- Trying to achieve row posts below category with multiple loops in custom tax
- Custom Taxonomy + JQuery Tabs
- WordPress show posts from children terms of a taxonomy term
- Loop custom post type by taxonomy (Category)
- Get custom taxonomy value of post and output posts in same taxonomy
- ACF Display Taxonomy Image Field
- How do I create a term for every value of a post meta?
- How home my code doesn’t display any feature image? Looping through post from a taxonomy and not getting feature images back
- Loop posts without any taxonomy
- How to looping taxonomy terms?
- Display posts from specific slug of the custom taxonomy in WordPress
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy
- Can you add the visual editor to the description field for custom taxonomies?
- Large taxonomy (2000+ terms), causing WordPress to hang
- Exclude Custom Taxonomies
- Get list of taxonomies associated with Subscribers
- ul list with only as many li’s as filled custom fields
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Head Code for Custom Taxonomy
- List posts grouped by children of a custom taxonomy