WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21596, comment 9


Ignore:
Timestamp:
06/10/2014 04:55:40 PM (5 years ago)
Author:
jacklenox
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21596, comment 9

    initial v1  
    77Bearing 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.
    88
    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-types
     9In 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