This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Custom Post Type Date Archives


Add Date archives to custom post types right in the dashboard itself. This plugin also provides widgets and editor blocks to display archives, calendars and recent posts. This allows you to use this plugin as a super simple events calendar.


  • Adds a date archives submenu for each custom post type
  • Adds the rewrite rules needed for viewing the date archives
  • Adds widgets and editor blocks for archives, calendars and recent posts
  • Allows you to publish scheduled posts with future dates like normal posts
  • Allows you to use specific theme templates files for cpt date archives
  • Adds WP Rest API endpoints for archives, calendar and recent posts

Plugin Documentation

WordPress doesn’t support date archives for custom post types out of the box. This plugin adds the rewrite rules needed to view the date archives at a pretty permalink.

Example permalink (url) for a custom post type events date archive.

The calendar, archive and recent posts widget are similar to the existing WordPress widgets, but with extra (custom post type) options added.

The cpt date archives use the same theme template files as the normal WordPress date archives. Extra template files and template functions are available for use in the custom post type date archives.

For more information visit the Plugin Documentation

عکس‌های صفحه

  • Date archives settings page for the custom post type Products.
  • The Calendar widget
  • The Archives widget
  • The Recent Posts widget
  • Calendar editor block
  • Archives editor block
  • Recent posts editor block


این افزونه 3 بلوک ارائه می‌دهد.

  • Custom Post Type Date Archives
  • Custom Post Type Date Archives
  • Custom Post Type Date Archives


Follow these instructions to install the plugin.

  1. In your WordPress admin panel, go to Plugins > New Plugin, search for “custom post type date archives” and click “Install now”.
  2. Alternatively, download the plugin and upload the contents of to your plugins directory, which usually is /wp-content/plugins/.
  3. Activate the plugin
  4. Add date archives in the “Date Archives” sub menu of a custom post type.

سوالات متداول

For more information about this plugin visit the Plugin Documentation

Where do I add the date archives?

You add the date archives in the “Date Archives” sub menu of a custom post type.

I don’t see the sub menu to add date archives?

If you don’t see the “Date Archives” sub menu in the menu of a custom post type, the post type is probably registered to not be public or not have archives. See Custom Post Types


2 مارس 2021
Excellent plugin qui ajoute une fonctionnalité importante
27 اکتبر 2020
If you're lamenting the fact that wp_get_archives() still doesn't accept custom post types, this is your plugin. See the documentation for the plugin's own alternative. It is a direct copy of the core function with CPT support added. Be sure to use if(function_exists('cptda_get_archives')) { … } to confirm the plugin is present before assuming the functions exist.
8 می 2017
I don't know why this plugin feature isn't included in the wordpress core by default but it works great, it does what it says and easy to use...
17 نوامبر 2016 1 reply
This works really well and has been very helpful, plus I have learned some more through implementing it... Much gratitude to the author for making it available... Kind regards...
3 سپتامبر 2016 1 reply
Hunted for solutions online (results of which seemed to always have some drawback) before deciding to check if a plugin was available... and there was. I was surprised that the CPT "date" feature was missing from WP - something you discover when you want more than a single "blog" type so not an uncommon request I'd have thought. Anyway, great plugin. Simple to use. Thanks very much to the author, keesiemeijer.
خواندن تمامی 6 بررسی‌

توسعه دهندگان و همکاران

“Custom Post Type Date Archives” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Custom Post Type Date Archives” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Enhancement
    • Update calendar HTML to be the same as WP 5.4


  • Enhancement
    • Add editor blocks to display archives, calendars and recent posts.


  • Fix white screen bug for themes without archive templates. props @wpexplorer


  • Enhancement
    • Add Rest API endpoints for the archives, calendar and recent posts.
    • Allow post type post in archives and calendar plugin functions.
    • Add pagination (offset) for archives and recent posts.
    • Restructure calendar filters (deprecating the old calendar filters).


  • Enhancement
    • Add ability to use custom archive days in the calendar by using filters.


  • Enhancement
    • Add more control over what posts are displayed in the Recent Posts widget
    • New settings class to manage admin settings
    • New functions for use in theme templates


  • Enhancement
    • Add recent posts widget


  • Enhancement
    • Add selective refresh for widgets in the customizer


  • Enhancement
    • Let WordPress create the rewrite rules for the date archives.
    • Add more control over creating feeds for the date archives (filter)
    • Flush rewrite rules after settings are updated (wp-admin)
    • More PHPUnit tests (github)


  • Enhancement
    • Flush rewrite rules when date archives are removed in admin page
    • Update help section with WordPress repo links
    • Add screenshots


Initial Commit