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
- 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
- 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
- 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
- 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
- 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
- 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
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Archive page for custom post type and custom taxonomy
- Custom Post type Query by Taxonomy
- Single.php for Custom Post Type > Taxonomy > Term
- Custom post type category permalinks and archive pages
- 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
- 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
- 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
- Custom post types not displaying per category
- 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]
- Multiple archives for cpt, taxonomies, terms
- Making a archive gallery page for a custom post type which already has an archive page
- Custom taxonomy in custom post type archive with pagination
- How to assign custom post template to its custom taxonomy terms
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Linking custom taxonomies and posts
- Archive templates based on taxonomies
- Why is this custom post type defaulting to archive.php?
- Storing/querying custom date data
- title tag for custom post type remove taxonomy name from title tag
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Archive custom template from search
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected