Use get_term_link();
for example:
$terms = wp_get_post_terms( $post->ID, 'category');
echo '<ul>';
foreach ($terms as $term) {
echo '<li><a href="'.get_term_link($term->slug, 'category').'">'.$term->name.'</a></li>';
}
echo '</ul>';
Related Posts:
- Custom Post type category pages template and loop
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to list all categories and tags in a page?
- Custom post type taxonomy template
- Show Post Count of a Category
- How to create new category for custom post type?
- Display all posts in main category and 1 subcategory
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Show a Category X’s custom post type on Category X archive page?
- Limit amount of posts made within a custom taxonomy
- Full Custom Post Type List Organised by two Taxonomies
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- My custom taxonomy is only displaying 1 of 3 terms
- get_terms() parent, child and grandchild
- How to show related posts of category on post within custom posttype
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- List all posts associated under custom taxonomy
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Custom post types not displaying per category
- Looping taxonomy in taxonomy?
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Is it possible for post and custom post type to share a category base slug?
- Category display using conditions
- How to Filter the Custom term loop based on dropdown
- Custom Post Type and Taxonomy Loop Output Is Wrong
- Changing CPT slug and taxonomy already registered in parent theme
- Custom post type categories gives 404 error
- Creating custom post type posts and associating them with a post from another custom post type
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Categories won’t appear on custom post type
- Get child categories of custom taxonomy category?
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Custom Taxonomy Terms in Menu lead to which page?
- Getting List of child terms from custom taxonomy parent
- Use post in multiple places on a page with multiple posts
- List all Custom Post Type posts excluding certain Taxnomy term
- Custom Post Type with modified permalink structure results in 404
- Get posts by category name
- Custom Post Type Custom Archive Page Not Working
- List child categories from parent category on custom taxonomy page
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Custom taxonomy query showing more than 4 posts
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Get terms for a specfic post from multiple taxonomies in custom post type
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Using page title as a link to term archive
- Custom post not appearing under custom taxonomy category
- Create a custom taxonomy template that loops through child categories in term order?
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Custom Post taxonomy template
- Retrieve Custom Taxonomies with Description and Slug
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Custom post type category permalinks and archive pages
- Custom post type, taxonomy and admin bar
- Loop and add Specific Categories and Products Images
- 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?
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- Query Custom Post Type by Taxonomy
- CPT archive page – show one post from each taxonomy term
- how to organize my categories or should I do custom post types for some?
- How do i display post from a taxonomy term?
- Advanced archive url structure (category, tag and date)
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- How to get posts using category slug in ClassiPress?
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Displaying taxonomies as category links within sidebar and creating pages for these
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Show the categories the current post has
- What is the most efficient way to execute recursive complex queries?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- How can I loop at a Specific Taxonomy from a custom post type?
- How to get post count of specific taxonomy that have store name & category
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Duplicate slug/permalink issue while adding same post name
- Page that lists publications by classifying them by taxonomy
- Custom archive page for custom taxonomy and pagination issue
- How to divide Subcategories into pages of parent category wordpress
- How to display list of custom post taxonomy terms and their posts (if any)?
- Custom front-end form for adding post – Category problem
- Get the taxonomy value in the post loop inside the archive page
- Custom post type archive page filters
- Filter taxonomy by CPT
- Custom post type paging return home page
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How to display custom taxonomy term specific post?
- Filtering posts based on three taxonomies
- Define multiple prefixes for custom post type
- get taxonomies from terms