WP defaults to showing normal native Posts in archives. It won’t automagically pick up which post types you want in your archive.
You will have to adjust main query for it to explain that to it, with something like:
add_action( 'pre_get_posts', function ( WP_Query $query ) {
if ( $query->is_main_query() && $query->is_tax( 'department' ) ) {
$query->set( 'post_type', [ 'course', 'faculty', 'library' ] );
}
} );
Related Posts:
- Custom post type templating problem
- Custom Post Archive is not working
- Archive page of CPT’s custom Taxonomy
- Custom post type archive page not showing on archive-posttype.php
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- Custom Post Type Settings page, choose page to display archive
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Assign posts to taxonomy terms instead of the taxonomy terms to posts?
- Exclude from search all custom posts which are NOT in a taxonomy term
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- How to get_queried_object on multiple objects?
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Post type archive page not working
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Archive page for taxonomy of custom post type
- Should I change these content meta types before building complex archive page?
- Getting taxonomy terms used by custom post type
- Archive or taxonomy pages not working for custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- How to create archive page for taxonomy terms within custom post type
- Paginated Taxonomy Term Archive including one post per term
- WordPress custom post type archive with description
- Custom post type and taxonomy permalinks – Structure
- taxonomy template for custom post type the same as the archive
- Display only post types that are direct children of the current taxonomy
- How can I filter by taxonomy on a custom post type’s page?
- How To Create A Custom Taxonomy 404 Page
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Custom template won’t load for a custom post type (custom permalinks used)
- Get posts by querying taxonomy and certain terms of the taxonomy?
- Custom post type is showing custom home page, not archive page
- Custom Post Type Taxonomy Filters
- Create template for taxonomy results limited by Custom Post Type
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Use Custom Post Type archive page for the taxonomies term archive page
- Display custom post type category, while in a CPT category, then the posts beneath
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Number of Custom Post Types published are not being shown in the custom page
- Custom post type archive page blank
- How to conditionally redirect to the post from a taxonomy page?
- posttype/taxonomy/term archive page 404 error
- How to group posts and get a mixed posts and groups view?
- My archive-posttype.php template is not loading
- What’s the name of the custom post type yearly archive template?
- Which Template Page Should I Use?
- How to list tags from custom post type attachments?
- Alphabetically sort a taxonomy.php template by post title
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- How to integrate single and archive templates for custom post type in any WordPress theme
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- How to get_term_meta on single custom post?
- Use the custom post type archive for taxonomies?
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts
- Taxonomy template page not working
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Custom Post Type Archive template not being called
- Query Posts that have Custom Taxonomy
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Archive page for custom post type and custom taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Custom Post type Query by Taxonomy
- Single.php for Custom Post Type > Taxonomy > Term
- Custom post type category permalinks and archive pages
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- CPT archive page – show one post from each taxonomy term
- Displaying custom taxonomy menu in custom post type archive
- Is possible register two archive pages for single custom post type?
- ACF – Retrieve custom taxonomy from a relationship field
- Getting Same Description in All the Custom Taxonomy Posts
- Finding the CPT archive template source
- Displaying all posts by category and showing content on click
- Display Custom Field or Custom Taxonomy in front page /post/product
- pagination problem listing custom post types of taxonomy in wordpress
- Posts per Page on custom Taxonomy Template
- WP_Query not using custom taxonomy categories on custom post type
- ACF Pro Accessing fields on a Custom Post Type
- Static Front Page not working for custom theme
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Building Link List for Custom Tax
- Custom taxonomy with custom post type archive page
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Showing taxonomies with terms that are attached to custom post
- Getting all custom post taxonomies and exhibiting only part of them
- get first limited words from a custom post in the archive page
- Custom post type post_type_link gives “page not found” on any other custom post type
- Error get_posts with Custom Taxonomy and OR relation
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Custom post types not displaying per category
- Help with Multi Level Category Archive Page
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type with two templates
- How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]
- Display custom post type archive on page.php template