New hooks for previous and next post
|Reported by:||majelbstoat||Owned by:||majelbstoat|
|Component:||Administration||Keywords:||hook previous next posts has-patch|
Getting the previous and next posts can be filtered by excluding categories, but it would be better to be able to filter more flexibly, like you can for get_posts(). The attached patch adds two new hooks prev_next_post_join and prev_next_post_where which are identical in purpose to the posts_where and posts_join filters.
The specific case I want to solve in filtering based on a custom query variable.
Change History (18)
comment:12 @Nazgul — 8 years ago
- Keywords has-patch added; bg|has-patch removed
- Type changed from defect to enhancement