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
- List all the tags from a custom post type
- Creating “static” taxonomies to choose from, inside custom post type?
- Custom taxonomy not showing up when adding a new custom post type
- 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
- Create an archive page for custom taxonomies
- How to Programically add to the new WordPress menus
- How to get the parent’s taxonomy?
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- wp_insert_post custom taxonomy
- Taxonomy-{taxnonomy}.php is not working
- Display taxonomy term only if there’s a value
- Get list of terms of current taxonomy archive for another taxonomy
- Associate Taxonomies Across Post Types
- Show Post Count of a Category
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Add Tags to custom post type
- Fetch taxonomies by custom post type id array
- get_terms showing all categories instead of the ones assigned to a specific post
- 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?
- Set menu active state for custom posttype and category, given custom taxonomy term
- How do I get array of types associated with a taxonomy?
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Correct classes for WordPress menu items
- Using default WP menu functionality to link to custom post-type listing?
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- How to Filter custom post type by taxonomy?
- Is it possible to have dedicated page for parent/child taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Display a grid of taxonomy terms at root taxonomy page
- limit value taxonomy based on previous taxonomy value wordpress
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- How to make custom taxonomy into drop down select in a custom metabox
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Display posts with tag for custom post type only
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- get_category_link() for custom post type does not include custom slug rewrite?
- Why does my taxonomy have a category style div id?
- Targeting categories in custom fields
- Get custom post type categories to show up in menus
- portfolio custom type tags support
- Alphabetically sort a taxonomy.php template by post title
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Show Taxonomies with admin area for custom post type?
- Custom taxonomy template list not working (404)
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- Print all the tags from a custom post type
- Changing CPT slug and taxonomy already registered in parent theme
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Query Custom Post Type by Taxonomy
- Menu for taxonomies and posts belongs to taxonomy
- Search CPT by tag ids
- Define multiple prefixes for custom post type
- How to order taxonomy terms by most recent post?
- How to set “section categories”?
- Custom taxonomy returns 404 even with saving permalinks
- Create custom post type categories
- Taxonomies are not showing in the category dropdown
- Set a Default CPT taxonomy by taxonomy id
- List all posts associated under custom taxonomy
- How to transfer categories (default) to custom taxonomy?
- Custom Taxonomy – fields
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Automatically / dynamically populating tags in custom post type
- Single taxonomy for different custom post types
- Filter Term By Parent Term – Custom Post Type
- Best approach to allow front-end display of posts’ reviewers?
- Custom Post Type tag taxonomy “Page Not Found”
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Custom Post Type parent slug as menu item
- Loop multiple taxonomy in custom post
- Generating List of Tags from Custom Post Type
- Archive templates based on taxonomies
- Show taxonomies from specific CPT
- See the process of creating a taxonomy and tell me where I made a mistake
- 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
- Filtering custom post types using category taxonomy
- Is it possible for post and custom post type to share a category base slug?
- Taxonomy Archive URL + Template