Opened 15 years ago
Closed 14 years ago
#13462 closed defect (bug) (worksforme)
wp_get_archives needs to access custom post types
Reported by: | Paulsheldrake | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | General | Keywords: | template functions |
Focuses: | Cc: |
Description
It's not possible to use wp_get_archives() on custom post types because there isn't an option to pass the type by the function arguments. Also there needs to be a way to have the equivalent of the archive.php template file for custom post types as the links generated by wp_get_archives() need to go somewhere.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is possible with the getarchives_where filter. Closing for lack of traction otherwise.