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?
- Display all posts in a custom post type, grouped by a custom taxonomy
- Custom Taxonomy as checkbox or dropdown
- Custom Taxonomy as Dropdown in admin
- Glossary with Custom Post Type
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Query multiple taxonomy in Custom Post Type
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- List all custom post type posts from a given category?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Taxonomy structure of Sport site
- Listing taxonomies from custom post type
- Custom Post Type and Taxonomy combination
- Querying Term Posts in Loop
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Get Post Primary Category
- How to check the terms in single custom post type template
- How can I move a custom taxonomy and its data from one post type to another?
- Am unable to reset a query properly
- Posts from all the categories are being displayed instead of particular category
- Get next and previous 3 posts in a term in single post page
- Custom Taxonomies not appearing in Admin
- Conditional Statement custom post type category
- Categories sorting
- Allow user to set custom order to a list of custom taxonomies?
- WordPress Doesn’t Generate Taxonomy Archive
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- Tag page only display 10 posts
- in_category for custom post types
- Custom taxonomy (categories) on custom post type return no results
- Control content before and after custom post type loop
- Listing all slugs?
- Rewrite custom post type with taxonomy
- Custom Post Type not showing in main loop
- Categories won’t appear on custom post type
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Using page title as a link to term archive
- 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?
- Advanced archive url structure (category, tag and date)
- Displaying taxonomies as category links within sidebar and creating pages for these
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Get the taxonomy value in the post loop inside the archive page
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Some posts not displaying by taxonomy term
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Listing all custom posts having a specific taxonomy whatever the terms
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Display custom tax in “while” loop
- I can not call the categories of custom post type
- Showing taxonomies with terms that are attached to custom post
- Custom Taxonomy page redirecting to 404 page
- Help with Travel Guide Setup
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Custom taxonomy page template
- Loop with Custom Post Type and Taxonomies
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- WordPress Custom Post Type and sort by Tags
- Get a list of categories ids
- How to display only taxonomies of custom post type in a page?
- Sorting custom post types by taxonomy (So close)
- Check if taxonomy is attached to at least one post in a post-type
- Custom posts and custom taxonomies for many products and categories?
- Return Custom Post Type Categories
- How do i get the taxonomy term name on the CPT archive page?
- Highlight specific menu item when custom post is page
- Taxonomy Archive URL + Template