wp_list_categories
is what you’re after. It takes taxonomy
as an optional argument.
Example taken from Codex:
<?php
$taxonomy = 'genre';
$orderby = 'name';
$show_count = 0; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$title="";
$args = array(
'taxonomy' => $taxonomy,
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title
);
?>
<ul>
<?php wp_list_categories( $args ); ?>
</ul>
Related Posts:
- Menu Multiple Taxonomies
- How to make a custom taxonomy selectable in post publish area?
- Custom post type category link + add to menu
- List all posts from custom post type by taxonomy
- How to get all taxonomies of a post type?
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Custom Taxonomy as checkbox or dropdown
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How do I append multiple taxonomies to the URL?
- List all the tags from a custom post type
- Custom Taxonomy as Dropdown in admin
- Creating “static” taxonomies to choose from, inside custom post type?
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to completely disable a taxonomy archive on the frontend?
- How to limit the number of terms (terms acts like categories)
- Taxonomy count per Post type
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Custom taxonomy not showing up when adding a new custom post type
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- Custom Taxonomy Template Post List with Sort Order
- wp_insert_term doesn’t work with custom post type’s taxonomy
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Extend walker class with custom post types [closed]
- Retrieve single term slug
- Taxonomy archives based on Custom Post Type
- Find callback function for custom taxonomy metabox
- Create an archive page for custom taxonomies
- Get the ‘slug’ of a custom taxonomy
- How to Programically add to the new WordPress menus
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- How to show term-specific post list, without posts associated with child terms?
- How to get the parent’s taxonomy?
- Query multiple taxonomy in Custom Post Type
- Include custom post type in “all posts”
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- wp_insert_post custom taxonomy
- Custom Post Type: How to display all of same taxonomy?
- Taxonomy-{taxnonomy}.php is not working
- How to search from specific post type with tags?
- Display taxonomy term only if there’s a value
- Remove “-2” from a Toolset Types URL with the same post name
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Get list of terms of current taxonomy archive for another taxonomy
- Registering tags taxonomy for a custom post type
- Get all taxonomies for all post types
- Custom post type taxonomy template
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Associate Taxonomies Across Post Types
- Use the_taxonomies() to create a simple list
- Listing taxonomies from custom post type
- associate custom post type with tags with specific pages
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Is it possible to make tag archive page specific to Custom Post Type?
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- Taxonomy Templates
- Custom Post Type and Taxonomy combination
- Show Post Count of a Category
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Navigation menus not showing because of custom post type filter
- Add Tags to custom post type
- Can custom taxonomies items have attached properties?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- How to check the terms in single custom post type template
- get_terms showing all categories instead of the ones assigned to a specific post
- How can I move a custom taxonomy and its data from one post type to another?
- Custom page template for category taxonomy
- Add/Remove current_page_parent class
- Change Permalink Structure for Tag.php template
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Query Multiple Taxominies Across Multiple Post type’s
- Set menu active state for custom posttype and category, given custom taxonomy term
- How do I get array of types associated with a taxonomy?
- Tag page with Custom Post Types not returning any posts
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- get tags from custom post type
- Custom posts and custom taxonomies for many products and categories?
- custom post type tags
- Tags and Taxonomy links not working for Custom Post Types
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- How do i get the taxonomy term name on the CPT archive page?
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Highlight specific menu item when custom post is page
- See the process of creating a taxonomy and tell me where I made a mistake
- Display associated taxonomy child name on single CPT page
- Attaching multiple custom taxonomies to one CPT?
- Issue On Listing Woocommerce Parent Tag List
- Navigation won’t update to show full path to single post
- Get all active posts that are tied to a custom taxonomy for a custom post type
- How to add to taxonomies to a post type