Opened 15 years ago
Closed 15 years ago
#10717 closed enhancement (fixed)
Make get_adjacent_post work with custom post_types
Reported by: | 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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [12058]) Make get_adjacent_post work with custom post_types. Props prettyboymp. fixes #10717