Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#13462 closed defect (bug) (worksforme)

wp_get_archives needs to access custom post types

Reported by: paulsheldrake's profile Paulsheldrake Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: General Keywords: template functions
Focuses: Cc:


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)

#1 @Paulsheldrake
14 years ago

  • Milestone changed from Unassigned to 3.1

#2 @nacin
14 years ago

  • Milestone Awaiting Triage deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This is possible with the getarchives_where filter. Closing for lack of traction otherwise.

Note: See TracTickets for help on using tickets.