CPT’s don’t have date archives, those are a post
specific feature.
Having said that, nothing prevents you building a custom bespoke date archive for a CPT. Just don’t expect WordPress core to do it for you, it would be a 100% custom job, you’d have to load your own date templates, modify the query, add the rewrite rules, and construct the URLs yourself.
The closest you can get out of the box, is visiting a CPT’s archive, and appending query args to the URL, e.g. example.com/yourcpt?year=2022
, but this will give you the same archive as that URL but with the additional filtering to 2022. Note that this only works with standard archives, it will not work if you replace the main query, rely on page templates to recreate archives, or use a page builder. It also won’t be considered a date archive by WordPress functions and APIs
Related Posts:
- How to create archive page for taxonomy terms within custom post type
- Create template for taxonomy results limited by Custom Post Type
- Use the custom post type archive for taxonomies?
- Archive page for custom post type and custom taxonomy
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Filtering a custom post type by custom taxonomy in archive template
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- get term archive url / link
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Pagination throws 404 error on custom taxonomy archive pages
- Proper way of making custom post type landing page or archive page
- posttype/taxonomy/term archive page 404 error
- Custom post type / taxonomy rewrite archive page 2 gives 404
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- Custom Post Archive is not working
- Custom Post type & Taxonomy 404
- How can I use archive-{post_type}.php theme template?
- Taxonomy archive 404ing (not term archive)
- Return the name of the post type
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Alphabetically sort a taxonomy.php template by post title
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Query Posts that have Custom Taxonomy
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Custom post type category permalinks and archive pages
- How to have multiple archive pages?
- Displaying custom taxonomy menu in custom post type archive
- Create a Custom Path to Archive
- Advanced archive url structure (category, tag and date)
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- How can I tell if I’m on a custom post type archive page?
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Custom Post Type Archive Page showing as 404
- Displaying all posts by category and showing content on click
- pagination problem listing custom post types of taxonomy in wordpress
- Custom Post type page content (archive page)
- Posts per Page on custom Taxonomy Template
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Group custom post type posts by month
- Static Front Page not working for custom theme
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- How to show custom post count in archive page
- Do not show child pages within a file page
- Tell wordpress to show a single page instead of an archive page
- Custom Post Type archive page listing a 404 or single post
- Building Link List for Custom Tax
- Custom taxonomy with custom post type archive page
- Order archive custom posts by taxonomy term [duplicate]
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Custom category taxonomy – archive page not showing up
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom post type post_type_link gives “page not found” on any other custom post type
- Custom taxonomy archive slug overwrites static page
- 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
- Want to display my custom date archive to date.php but dont know how
- Help with Multi Level Category Archive Page
- Custom post type archive page not showing on archive-posttype.php
- Custom Post Type tag taxonomy “Page Not Found”
- Custom taxonomy in custom post type archive with pagination
- Rewriting archive page slug to be different than custom post type slug
- Pagination fault in custom post type archive page [duplicate]
- Site loads very slow for archive custom post type page
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- Archive.php is not displaying tags
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Custom post type category page not working
- Why is this custom post type defaulting to archive.php?
- title tag for custom post type remove taxonomy name from title tag
- paging is not working properly on news archives page [duplicate]
- How can I set up the URL for a category archive for a custom post type?
- Custom taxonomy archive page not routing?
- Pagination not working for archive
- Remove plugin’s custom post type archive page and single pages [closed]
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Show custom category archive as front page and remove taxonomy slug from urls
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- Remove date rewrite rule for custom post type archive page
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- Rewrite taxonomy permalink appended to CPT archive url
- Custom Taxonomy archive with url parameters