Category
is a specific taxonomy built into WordPress, the_category
only works with this single taxonomy, not custom taxonomies. To fetch terms from a custom taxonomy, use the_terms
:
the_terms( $post->ID, 'type' );
Related Posts:
- Custom post types, taxonomies, and permalinks
- How do I query a custom post type with a custom taxonomy?
- Custom Taxonomy specific to a Custom Post type
- List all posts in custom post type by taxonomy
- How do I append multiple taxonomies to the URL?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- query related posts in a custom post type by a custom taxonomy
- Help with a TV series Rewrite structure
- Add/overwrite a parameter on an existing post type/taxonomy
- Get the ‘slug’ of a custom taxonomy
- Add taxonomy to already registered custom post type
- Multiple custom post types using the same taxonomy = URL frustrations
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Term Checklist Walker – Disable Parent Categories
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- Pagination throws 404
- Order custom posts by taxonomy?
- Maintaining strict one-to-one association between terms and custom posts
- Custom Taxonomy conditionals
- Include custom post type in “all posts”
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- How to create archive page for taxonomy terms within custom post type
- Date-based permalinks for Custom Post Type, and custom taxonomy permalinks
- Get all taxonomies for all post types
- Category and post tag archives do not include posts from custom post type
- Linking three taxonomies with ACF
- List terms from Custom Taxonomy
- Display Custom Taxonomy
- How to List Thumbnails based on Custom Categories
- Can I change the slug of my archive page on a Custom post type?
- Automatically populate a hierarchical taxonomy from a custom field
- Set object terms not working on plugin activation
- Display only post types that are direct children of the current taxonomy
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Keyword search limited to specific post type filtered by multiple custom taxonomies?
- Custom Taxonomy Invalid in REST API
- get_post_meta returns empty array for terms
- Custom Post Type Archive Page Filtering
- Missing Posts in Custom Taxonomy List
- Custom Taxonomy Doesn’t Show Up
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Post count by month of taxonmy term
- Permalinks /country/city/cpt/postname/
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Pretty URL for custom search for custom post type
- First custom field value (out of several) displayed twice after query
- Custom while loop for hierarchical display of a taxonomy
- Create more category hierarchical depth for custom post type/taxonomy plugin (widget)
- How do I share categories across multiple post types?
- Migrating a taxonomy’s tags to the native category
- Grouping of CPTs and taxonomies into menu groups in admin
- custom post type vs. conditionally displaying meta boxes for specific terms?
- Get parent category id from child category page for custom taxonomy
- Trying to get custom post of a custom taxonomy
- How can I create an automatic drop down menu with my tags?
- sort CPT on Custom Taxonomy Archive page
- REST filters only firing when I have a param set
- SEO Concerns With Rewrite Rules
- Empty taxonomy items for CPT in admin grid
- WordPress custom post type and taxonomies
- Display Custom Post Types Glossary
- How to fetch custom post types with its full data on wordpress?
- Taxonomies exists – but not showing up
- Custom post not appearing under custom taxonomy category
- How to filter Multiple taxonomies with radio buttons
- ACF – Retrieve custom taxonomy from a relationship field
- Restrict access to custom post type based on its taxonomy terms
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- How is possible to know ID of taxonomy-{taxonomy}.php page for ACF fields
- Display CPT Category List as Shortcode
- Need help with Custom Taxonomy + Custom Post Type
- Aloha! VERY broad CPT questions. Looking for the theory/best practices behind it
- URL for archive of custom post type with 2 taxonomy terms
- Dont know why my custom post type not add_post_meta
- Custom post type single with custom URL structure
- WordPress custom post type taxonomy paging
- List posts that have the current url taxonomy
- wordpress does not see the correct custom taxonomy hierarchy
- Getting Custom Posts with Custom Taxonomy
- How to get all posts assigned to a taxonomy term only?
- Error get_posts with Custom Taxonomy and OR relation
- Custom Taxonomies in body class with parent slug
- Multiple archives for cpt, taxonomies, terms
- Generating a radius search on postmeta-metavalue and adding a taxonomy to query
- How to pass taxonomy terms to WP_Query along with $args?
- Display custom Taxonomies same as listing Categories
- Order by custom field attribute
- Custom post type and custom taxonomy archive inaccessible
- Get all terms assigned to a post from different taxonomies
- Determine category in taxonomy of current custom post type
- Custom Post Types on Custom Categories
- Different CPT permalink base on taxonomy
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- How to filter custom post data with AJAX?
- Is it possible for post and custom post type to share a category base slug?
- Query custom post type and group by taxonomy
- How to develop Knowledge center in WordPress Website