Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#10717 closed enhancement (fixed)

Make get_adjacent_post work with custom post_types

Reported by: prettyboymp's profile prettyboymp Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: General Keywords: has-patch
Focuses: Cc:

Description

get_adjacent_post forcefully puts post_type = 'post' within the query. This function would be reusable with custom post types if it would filter based off of the global $post's post_type.

Attachments (1)

adjacent_custom.patch (984 bytes) - added by prettyboymp 15 years ago.

Download all attachments as: .zip

Change History (4)

#1 @JohnMyr
15 years ago

  • Cc JohnMyr added

#2 @scribu
15 years ago

  • Milestone changed from Unassigned to 2.9

#3 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12058]) Make get_adjacent_post work with custom post_types. Props prettyboymp. fixes #10717

Note: See TracTickets for help on using tickets.