Your category URLs are correct, they won’t change by virtue of being associated with a custom post type. I’ll guess that the problem is that default category queries do not include any custom post types, so will display “Nothing found” on term pages where the only associated posts are a CPT. To fix that, you need to alter category queries via pre_get_posts
:
function wpa_cpt_in_categories( $query ){
if ( ! is_admin()
&& $query->is_category()
&& $query->is_main_query() ) {
$query->set( 'post_type', array( 'post', 'project' ) );
}
}
add_action( 'pre_get_posts', 'wpa_cpt_in_categories' );
Related Posts:
- 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?
- Limit amount of posts made within a custom taxonomy
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Targeting categories in custom fields
- 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
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Is it possible for post and custom post type to share a category base slug?
- How to get all taxonomies of a post type?
- Get the first post term
- Exclude a category from WP_Query
- Creating “static” taxonomies to choose from, inside custom post type?
- Custom taxonomy not showing up when adding a new custom post type
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- Create an archive page for custom taxonomies
- remove support for ‘Categories’ for a custom post type
- How can you make permalink work for custom post type and taxonomy?
- Filter get_categories() for taxonomy term in WordPress
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Taxonomy-{taxnonomy}.php is not working
- Taxonomy list. Order by a specific custom post type count
- Get list of terms of current taxonomy archive for another taxonomy
- Associate Taxonomies Across Post Types
- Display Custom Category (taxonomy) Name in Custom Post Type
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Menu Multiple Taxonomies
- Get categories and descriptions from custom post type
- Combining custom post type and post category
- How to make a custom taxonomy selectable in post publish area?
- Problem with custom post types, taxonomy and permalinks
- Custom page template for category taxonomy
- How to get the post type from a category id?
- Insert HTML inside link in a walker
- Set menu active state for custom posttype and category, given custom taxonomy term
- How to show CPTs in term archive
- How do I get array of types associated with a taxonomy?
- Show category ID on custom post type
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- get_category_parents for custom post type taxonomy
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- How to Filter custom post type by taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Hide parent categories when clicked, and show it’s childs
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- How to get custom posts sub category link
- WP the_posts() on single-cars.php get category link
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- Why does my taxonomy have a category style div id?
- Invalid Taxonomy
- Alphabetically sort a taxonomy.php template by post title
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Show Taxonomies with admin area for custom post type?
- Include custom post type custom taxonomies in Categories widget
- Changing CPT slug and taxonomy already registered in parent theme
- get_terms() parent, child and grandchild
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Custom Post Type Custom Archive Page Not Working
- List child categories from parent category on custom taxonomy page
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Retrieve Custom Taxonomies with Description and Slug
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- Query Custom Post Type by Taxonomy
- How to order taxonomy terms by most recent post?
- How to set “section categories”?
- Custom taxonomy returns 404 even with saving permalinks
- List all posts associated under custom taxonomy
- how to create custom taxonomy drop downs for parents and child
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Custom post type category link + add to menu
- Single taxonomy for different custom post types
- Reuse the “category” slug for a custom post type
- How to create groups like that in buddypress?
- Filter Term By Parent Term – Custom Post Type
- Best approach to allow front-end display of posts’ reviewers?
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Post Editor: display categories from current post type taxonomy only?
- List all posts from custom post type by taxonomy
- Archive templates based on taxonomies
- Trying to create hierarchy between 3-4 custom post types
- Customize category URL
- show only one category posts in admin
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Show custom category archive as front page and remove taxonomy slug from urls