WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 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)

comment:1 Paulsheldrake4 years ago

  • Milestone changed from Unassigned to 3.1

comment:2 nacin3 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.