Assuming the taxonomy name is “animals”
<?php
//This will show all the terms in taxonomy whether they have posts or not thus the "hide_empty"
$terms = get_terms( array ( 'taxonomy' => 'animals', 'hide_empty' => false, 'parent' => 0, 'orderby' => 'description', 'order' => 'ASC' ));
foreach ($terms as $term) {
// The $term is an object, so we can get the names.
//use var_dump($term) to see other options available
echo $name = $term->name;
}
?>
Related Posts:
- Custom Post Type – Taxonomy Dropdown Menu?
- Custom Taxonomy Template Post List with Sort Order
- Custom Post Type with Custom Title
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Assign Taxonomy Based on Custom Field Value
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Targeting categories in custom fields
- Get post-meta value of all custom-posts – lowest to highest year-count?
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- Query Distinct Taxonomies of Custom Post Type
- Automatically set post title to same value as a meta box
- Custom Post Type Archives by Date and Taxonomy
- How to get all custom fields of any post type
- How to completely disable a taxonomy archive on the frontend?
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Taxonomy + post_type
- Using 1 taxonomy for multiple post types?
- How to get a list of term names of the custom post type im currently on in single.php
- Orderby custom field for custome post type
- How to show term-specific post list, without posts associated with child terms?
- Saving multiple Metabox contents
- Get the most popular terms for a custom post type
- Custom post type / custom fields
- Registering tags taxonomy for a custom post type
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- how to set default value for checkbox in wordpress
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Taxonomy Templates
- Category page only displaying the posts from a custom type
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- Ajax form filter post by custom fields [closed]
- Custom Posts Hierarchy? (State/City/Restaurant)
- Assigning the same custom meta box to multiple post types
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- 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?
- Custom post taxonomies as tax_query terms?
- Get related posts of child term of custom post type
- Show custom post type relationships by taxonomy
- get_post_meta not working on publishing
- Query custom post type with ACF Date
- Add custom field in comments form
- Hierarchy and access control for Custom Post Types (CPT)
- Custom post with more than one custom taxonomy
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How to let users choose where to search for posts?
- Filter get_cat_id for Custom Post Type
- Query based on custom fields start and end date
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- How does the ‘the_post_navigation()’ work for CPT’s?
- Display post from a date range from custom field
- Custom post type – list posts based on meta_key and display them divided by CPT taxonomy category
- List of users that clicked a ‘Join’ button at single post
- Custom taxonomies to define versions of a product
- Getting a custom post’s custom field based on another custom post’s custom field select
- Inserting custom fields into single.php
- Proceed to the next video of the custom post type but remain on the same post
- search custom post type by custom fields on front end
- Change WordPress custom field default calendar [closed]
- How to show custom field on specific custom post type posts only when filled
- Display 1 Post per taxonomy with polylang
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- How can I sort the order of multiple custom field values in a custom post type?
- Checking for custom field in admin pages
- Create if else for post types in WP_Query ‘post__in’ values
- How to avoid duplicate posts queried from custom meta?
- Display Custom Post Type Based on Taxonomy With WP_Query()
- How to add CSS class field in Custom Taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- How to link custom field of two custom post types?
- Categories manage
- Simple Data picker meta box
- How to properly set a value to meta fields of a custom post type in WP-API/node-wpapi REST API?
- Filtering custom post using Ajax and taxonomies, keep getting 0
- Changing an item in drop down after 5 latest posts per taxonomy
- Custom Fields through plugin in a Custom Post Type
- Need some suggestion/help with custom post types project
- Best way to insert a js script in the header with custom fields and CPT
- Two plugins sharing the same custom post type registration
- Related posts by taxonomy [duplicate]
- Default custom column to off
- Taxonomy count per Post type
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Displaying database table in backend of wordpress
- How to display elements of different post types?
- How to display only taxonomies of custom post type in a page?
- Create shortcode for list of custom post titles with custom fields alongside
- Custom meta box includes
- Radom post image/link based on custom taxonomy
- Echo post count of CPT with current taxonomy
- Get custom post fields and display them
- Check for custom field value in different post type than current one and do something
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?