WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#10717 closed enhancement (fixed)

Make get_adjacent_post work with custom post_types

Reported by: prettyboymp Owned by:
Priority: normal Milestone: 2.9
Component: General Version: 2.8.4
Severity: normal Keywords: has-patch
Cc: prettyboymp, JohnMyr

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 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 JohnMyr4 years ago

  • Cc JohnMyr added

comment:2 scribu4 years ago

  • Milestone changed from Unassigned to 2.9

comment:3 ryan4 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.