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?
- How to completely disable a taxonomy archive on the frontend?
- How to get a list of term names of the custom post type im currently on in single.php
- How to show term-specific post list, without posts associated with child terms?
- Conditional two level dropdown filter for custom post type
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- Custom edit post column – category not showing
- Remove “-2” from a Toolset Types URL with the same post name
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Taxonomy Templates
- Category page only displaying the posts from a custom type
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- wp_query to find posts by year and month
- How to check the terms in single custom post type template
- get_template_part for each level of taxonomy term
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Posts from all the categories are being displayed instead of particular category
- Custom Post Type Taxonomy Filters
- Display all taxonomy terms, add class if term applies to current post
- Get related posts of child term of custom post type
- Filter CPT posts by one or more categories
- WP Query with categories only shows one post and ignores the category
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Hierarchy and access control for Custom Post Types (CPT)
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- How to get list of taxonomy slugs ordered parents>childs?
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- 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
- 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
- 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?
- How can I show second most recent post in sidebar, if most recent post is open in the browser?
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- How to list custom taxonomy terms without the hyperlinks?