as determined in the comments, the page URI is ?post_type=photos&genre=boudoir
…
The reason why "archive-{$post_type}.php"
isn’t used in this case is because the page is a taxonomy archive and not a custom post type archive. WordPress is looking for taxonomy-genre.php
instead of archive-photos.php
, and not finding it, is defaulting back to good old archive.php
. Here’s a wonderful cheat-sheet on the template hierarchy, which is so useful it’s probably worth tattooing on your forearm.
Related Posts:
- Custom Post Type Settings page, choose page to display archive
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- Custom post type is showing custom home page, not archive page
- Custom post type archive page blank
- Custom Post Archive is not working
- How to integrate single and archive templates for custom post type in any WordPress theme
- Custom Post Type Archive template not being called
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- Finding the CPT archive template source
- ACF Pro Accessing fields on a Custom Post Type
- get first limited words from a custom post in the archive page
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- 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
- Making a archive gallery page for a custom post type which already has an archive page
- Pagination not working only on Archive-Name.php using new WP_Query
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- How to set a custom post type to have viewable future posts
- How to get the custom post type from an archive page?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to filter custom post type archive by meta value
- “Edit” option for custom post types archive page
- Get monthly archives for custom post type
- How to get_queried_object on multiple objects?
- Assign Page Template Within A Custom Post Type
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Post type archive page not working
- paginate function in archive for custom-post-type
- Custom Post Type – Archive page title
- Getting taxonomy terms used by custom post type
- Archive or taxonomy pages not working for custom post type
- How to create archive page for taxonomy terms within custom post type
- I am facing problem in my archive page , it is partially working
- 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 give CPT archive correct body class?
- Conditional tags don’t work
- Custom template won’t load for a custom post type (custom permalinks used)
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- CPT custom archive template does not get loaded
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- How to use has_archive but disable feed per post type?
- Custom post type: Disable single page, but keep archive
- Use Custom Post Type archive page for the taxonomies term archive page
- Number of Custom Post Types published are not being shown in the custom page
- Custom Post Type Archive URL is wrong
- list archives per post types
- Canonical url differs from custom post type archive URLs
- Custom post type archive pagination 404
- posttype/taxonomy/term archive page 404 error
- Is it possible to have a custom post type with feed but without the archive?
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Add parent post to Custom Post Type [closed]
- What’s the name of the custom post type yearly archive template?
- Display custom post types in wp_list_pages
- How to display CPT archives?
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- current-menu-item not added on page showing custom post type (rendered with archive template)
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- add_action ‘init’ from inside a class for custom post types
- Custom post type archive – error in nav-menu-template.php
- Custom post type category permalinks and archive pages
- Get single posts archive information
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- CPT archive with WP native/core tax/categories
- Does this archive template part look like its making too many calls to the db?
- How to add specific terms in a custom post type?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Custom Post type page content (archive page)
- Posts per Page on custom Taxonomy Template
- Group custom post type posts by month
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- How to manage a custom post type archive as a page?
- How to manage a custom post type archive as a page?
- Custom post types not displaying per category
- Multiple archives for cpt, taxonomies, terms
- Rewrite rules causing hole
- Custom post type category page not working
- paging is not working properly on news archives page [duplicate]
- CPT Archive with parent page
- listing custom post type category page
- Archive custom template from search
- custom post type not getting archived?
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- Pagination not working on custom post type archive
- Best practice to display a list/archive of Custom Posts in a Page Template
- Archive pagination – second page shows exactly the same posts