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
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Custom Post Type Archives by Date with Custom Permalink
- Change title in head on Archive page
- Create permalink structure for one taxonomy archive per custom post type
- Page is defaulting to archive page and not designated template
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Custom taxonomy archive page not working
- Archive page for taxonomy of custom post type
- How to show multiple post types on taxonomy archive?
- Disable single pages and archives and keep preview
- Custom post type archive sorted and grouped by date in post meta field
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- Get post type from taxonomy or category page
- Custom-post-type-archive: posts sorted/filtered by year?
- custom taxonomy archive by year
- Custom post type archive page pagination
- Display custom post type taxonomies as an archive page
- Editable content on a Custom Archive page
- Second Custom Post Type Archive
- How can I filter by taxonomy on a custom post type’s page?
- is_main_query() not working for WP REST API
- Archive page for taxonomy terms
- CPT Archive with core Category
- Root slug of taxonomy returning 404
- get the custom post type title/name
- Custom post type templating problem
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Custom post type archive page blank
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How to display custom post in archive section of the wordpress page?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Archive for a Taxonomy of a Custom Post type
- Custom Post type & Taxonomy 404
- Taxonomy archive 404ing (not term archive)
- Return the name of the post type
- 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
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- 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
- Getting custom taxonomy posts on archive page
- 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)
- 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
- Static Front Page not working for custom theme
- 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
- 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
- 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 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
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Why is this custom post type defaulting to archive.php?
- title tag for custom post type remove taxonomy name from title tag
- 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
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query