The default WP category is only set-up to show posts out of the box. You should be able to expand this by doing something like the below in your functions.php:
// Order course archive and taxonomy views
function adjust_main_query($query){
if ( ! is_admin() && is_category() && is_category() && $query->is_main_query() ) {
$query->set( 'post_type', array( 'post', 'mpCPT' ));
}
}
add_action( 'pre_get_posts', 'adjust_main_query' );
I haven’t tested this, but it’s an adaptation of a working example I have used. Hope it helps get you on the right lines.
Related Posts:
- Custom Post Type with modified permalink structure results in 404
- how to use two permalinks for one custom post type based on categories
- Adding categories to custom post type in permalink
- Can a custom post type have a Parent Page?
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- How to change permalink structure for custom post type and it’s taxonomies?
- Custom Post Type Permalink / Rewrite not working immediately
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type 404s with rewriting even after resetting permalinks
- Multiple post types – share same ReWrite slug?
- Rewrite rule for Custom post type Monthly and Yearly archive
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Is there a way to use regular categories with custom post types?
- How to modify URL structures in custom post types and taxonomies or terms
- Adding meta values to permalink
- Modify custom post type rewrite rules in a separate function
- Permalinks so that one custom post type appears to be a child of another, not working
- Help with a TV series Rewrite structure
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server
- Permalink rewrite with custom post type and custom taxonomy
- Prepend meta_value to permalink of post
- How to check if last uri segment is a custom post type or taxonomy term?
- Permalinks using event date (year & month) instead of publication date
- Permalinks for CPT breaks permalinks to pages
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- On clicking on the category name the page is redirecting on 404 pge
- WordPress Rewrite rule for nested post types
- How to show custom taxonomy in the permalink?
- Custom Permalink Tag breaks Pagination
- WordPress rewrite my URL when i use pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Custom post types and permalink
- Get a permalink structure of /%posttype%/%category%/%postname%
- Add hierarchical taxonomy to permalink for custom post type
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Permalink Structure CPT With Custom Taxonomy Fails
- Parent & Child Taxonomy slugs in custom post permalink
- Custom Post Types and independent Categories – complex Taxonomy
- Making a custom help center page
- Custom rewrite rule for hierarchical custom post type
- Display posts from Custom Post Type in category page on front-end
- How to change custom post type permalink structure
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- Add custom post type settings to wordress default posts
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Can’t remove front from permalinks for custom taxonomy category page
- Customize Custom Post Type URL
- Remove CPT name from permalink but add %category% instead
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Custom post type permalink returns 404
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Make custom post types and pages place nice, re: rewrite
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Rewrite rule for Custom post type Monthly and Yearly archive
- Add a permalink variable onto custom post type URL after post name slug
- How to query 2 custom post types that need to share a slug?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Combine multiple CPT names to create valid permalinks
- Set parent for custom post type archive rewrite url
- Route subpage to Custom Post Type
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- WordPress custom permalink and archive link for custom post type
- Custom post type category permalinks and archive pages
- Subpages Permalinks Issues
- Rewrite URL for CPT to domain/post-name/post-id
- Searching in multiple category + URL hierarchy in real estate WordPress site
- Modify category permalink to use post type slug
- Custom permalink structure for custom post types including multiple taxonomy
- Sudden 404 pages on product category archives
- Adding categories to custom post type in permalink
- Change custom post type permalink according to category
- Two CPT: one is using part of the custom rewrite slug from the other
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- WordPress custom post type rewrite rule matches all pages returning 404
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- Custom Post Type + Category archive
- Multiple Custom Post Type permalink issue
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- Custom post type child page 404
- Custom post type permalink structure
- Remove slug from Custom Category Permalink + dual-category permalinks
- Custom post type and category permalinks
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- Is it possible for post and custom post type to share a category base slug?
- What is the best way to relate different custom post types?
- How to get the proper category in permalink with custom post type assigned to multiple categories
- how to properly format custom post type rewrite to get specific URL structure for archive and post views
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?