Hi @Wordpressor:
Sounds pretty simple so I’m concerned I misunderstand, but in case I did understand correctly here’s a function; just pass the taxonomy to it like this: echo get_taxonomy_list_html('category'):
function get_taxonomy_list_html($taxonomy) {
$term_links = array();
foreach(get_terms($taxonomy) as $term) {
if (!empty($term->slug) && $term->count>0) {
$link = get_term_link($term,$taxonomy);
$term_links[] = "[ <a href="https://wordpress.stackexchange.com/questions/8326/{$link}">{$term->name}</a> ({$term->count}) ]";
}
}
return implode(' ',$term_links);
}
Related Posts:
- How to add current custom taxonomy slug to body class
- Theme localization of “slugs” (custom post types, taxonomies)
- Filtering a custom post type by custom taxonomy in archive template
- Custom Post type & Taxonomy URL structure
- Exclude a category from WP_Query
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to build a complex page structure
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- Taxonomy archive with same slug as custom post type?
- How to list all categories and tags in a page?
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- remove support for ‘Categories’ for a custom post type
- Filter get_categories() for taxonomy term in WordPress
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- How to show custom taxonomy in the permalink?
- Custom/separate categories for custom post type
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Display Custom Category (taxonomy) Name in Custom Post Type
- Custom Taxonomy breaking pages permalinks
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Show Post Count of a Category
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Combining custom post type and post category
- How to create new category for custom post type?
- Insert HTML inside link in a walker
- Custom Post Types and independent Categories – complex Taxonomy
- Custom post type and taxonomy slug issue
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Should I use custom taxonomy or custom post type
- Set menu active state for custom posttype and category, given custom taxonomy term
- Display all posts in main category and 1 subcategory
- Custom Post Type Archive Page Filtering
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Custom Post Type With Categories
- get_category_parents for custom post type taxonomy
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Hide parent categories when clicked, and show it’s childs
- How can I make the slug of the taxonomy also the slug of the custom post
- Can’t remove front from permalinks for custom taxonomy category page
- Allow duplicate slugs for custom post type with taxonomies
- Nested Custom Post Type or Custom Post Type Parents?
- Custom Post Slug same as Parents Category Slug
- Multiple (two) category postings on the same page.
- How to get custom posts sub category link
- browse by category and tags?
- List of Posts and Categories
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- in_category for custom post types
- Get parent category id from child category page for custom taxonomy
- Rename a slug label
- List Posts By Custom Taxonomy
- How to Display Posts From Category Within a Custom Taxonomy?
- Disable custom taxonomy on admin bar
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get child categories of custom taxonomy category?
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Get terms for a specfic post from multiple taxonomies in custom post type
- Custom post not appearing under custom taxonomy category
- how to organize my categories or should I do custom post types for some?
- Advanced archive url structure (category, tag and date)
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- How do I set a post slug automatically based on taxonomy?
- How to divide Subcategories into pages of parent category wordpress
- Custom front-end form for adding post – Category problem
- How to show related posts of category on post within custom posttype
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Show Custom Post Type based on Category on Archive Page
- How to manage a dynamic multi-level page hierearchy system?
- Custom category taxonomy – archive page not showing up
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom post type post_type_link gives “page not found” on any other custom post type
- Help with Travel Guide Setup
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Custom post type category archive URL redirects to home page
- Help with Multi Level Category Archive Page
- Get full control over custom post type url
- Display custom Taxonomies same as listing Categories
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Display 2nd category, only once, as sub-heading, in the loop
- Category slug not showing for Custom Post Type
- Get a list of categories ids
- WP Query Post Type with same Taxonomy name
- Return Custom Post Type Categories
- Remove slug from Custom Category Permalink + dual-category permalinks
- How can I show second most recent post in sidebar, if most recent post is open in the browser?
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Hide custom post type slug url from search engine [closed]
- Is it possible for post and custom post type to share a category base slug?
- Is it possible to use a post name in a custom post slug?
- Taxonomy Archive URL + Template
- WP Query filtering by custom category not showing all relevant posts