Changes between Initial Version and Version 1 of Ticket #21596, comment 9
- Timestamp:
- 06/10/2014 04:55:40 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21596, comment 9
initial v1 7 7 Bearing that in mind, it looks as though we would need to rewrite the `get_date_permastruct` method of the `WP_Rewrite` class so that it can also handle a custom post type. Or we need to combine that method with a new one. I don't really know enough about the class to have a valid opinion. 8 8 9 In the meantime I've created a plugin that contains a new function `wp_get_archives_cpt()` which is basically a clone of `wp_get_archives()` but the added `post_type` support. The plugin also comprises what I believe is the quickest, dirtiest way of dealing with the URL rewriting. Find it here: https://github.com/jacklenox/archives-for-custom-post-types9 In the meantime I've created a plugin that contains a new function `wp_get_archives_cpt()` which is basically a clone of `wp_get_archives()` but with the added `post_type` support. The plugin also comprises what I believe is the quickest, dirtiest way of dealing with the URL rewriting. Find it here: https://github.com/jacklenox/archives-for-custom-post-types