Yearly or Monthly Paginating Custom Post Type Archives + Permalinks

WordPress does not produce pretty permalinks for a custom post type’s year archives, month archives or daily archives.

You can find a custom post type archive by using a query string ie:

You may want to rewrite your URL to

The following code snippet can be added to your WordPress theme’s functions.php file to create custom post type date archives that have pretty permalink structure.


Remember to modify [YOUR-CUSTOM-POST-TYPE] to reflect the post type you would like to create a date archive for.

Reference: Stackoverflow