prev and next_post_link ultimately call the get_adjacent_post function to query the db, which has filterable $join $where and $sort vars.
Related Posts:
- Problem excluding category from get_next_post
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How can I get next post id after current post id for custom post type
- Using previous_post_link and next_post_link to wrap around post sequence
- Working with Next and Prev links in Single Taxonomy Templates
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Next and Previous Posts of Same Parent
- Modify previous and next post links to current Authors Other posts
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Display next 3 posts based on custom taxonomy
- Back, Next, and Previous links for the REFERRING term archive
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Previous/Next custom post links within custom taxonomy
- Next/Previous Post Links in single-[custom-post-type].php file
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- Hook for post and page load
- How to enqueue scripts on custom post add/edit pages?
- How do you use a CPT as the default home page?
- Calling a Function After New Post Creation for a WordPress Custom Post Type?
- Remove current_page_parent nav class from blog index when in CPT
- How to Debug the ‘save_post’ Action?
- WordPress Custom Post Types with a page as a parent?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- How to order adjacent posts (prev / next) by custom field value?
- How to model a hierarchy for courses, levels and lessons?
- get_query_var() not working in pre_get_posts
- Unregister post type from child theme
- Filter for “get_post_type_archive_link()”
- How to add a button to custom post type’s posts-page
- How to hook into the CPT’s title placeholder?
- flush_rewrite_rules on save_post Does Not Work on First Post Save
- How make get_next_post() return first post when viewing last one
- How can I limit the length of the previous/next posts in my WordPress Theme?
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Admin Post Update Redirection to Posts Screen
- How often do you need to register_post_type?
- How to create notification on frontend using heartbeat api for multiple custom post types
- How to set a custom post type post as static front page?
- With what hook can I address all posts from all custom post types when they are published?
- Hook when adding or editing a specific custom post type? [closed]
- Nav menu of all posts in a custom post type
- remove_action conditionally for Custom Post Type
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- posts_nav_link on single post template
- Dropdown list of a custom post type
- Highlight nav menu terms
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Custom Taxonomy Breadcrumb Navigation
- What hook should be used to programmatically create a post only when master post is updated?
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- How to register custom post types in a plugin?
- Add information above a custom post type listing of all posts page
- Select menu should display categories and the item’s depth
- Remove “Get Shortlink” button in admin of custom post type
- Why are navigation items saved in the database?
- adding .current* tags to custom post types and taxonomies
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- wp_get_nav_menu_items wp-admin/customize.php problem
- current-menu-item not working with custom post type
- Showing Custom Content in a Nav Dropdown
- Execute code only after user clicks ‘update’ button for CPT being edited
- Custom nav menu current item custom link problem
- Custom Fields as Post Type Options
- Adding Information To All Posts Screen
- do action inside a class is not working
- Filter Content on all Post Types
- Customizing a plugin function using a hook
- Calling the first & last post by category in custom post type
- Hook only specific post type
- Programmatically Split A Post Into Multiple Pages
- Post in multiple categories do not include in previous / next post if one category in excluded
- next_posts_link returns same content of 1st page
- Trying to display next and previous set of posts on separate page (not parent page)
- Custom post type navigation – 404 on page 2
- Previous and Next posts
- Create action running on trashed_post hook to modify post_meta value
- current_page_item and custom post type?
- Why is Posts page selected when showing single Custom Post Type?
- Navigation links to posts in current term shortcode
- add comments custom fields after user is logged in
- How to string lines from the_content() hook in WordPress?
- Previous / next posts using featured image thumbnail as links
- Pagination for Custom Post Type with Multiple Types
- Navigation won’t update to show full path to single post
- get_the_post_navigation not working
- Redirect drafted post of custom post type to URL?
- Modifying post_type_link hook messing up edit function for a custom post
- Change CPT Edit Target Link for Admin List
- Custom post type template not loading from plugin
- How to display custom taxonomy subpage inside wp menu from a custom post type using add_menu_page() and add_submenu_page?
- Add a post when another post type is inserting
- next_post_link and previous_post_link on custom post type without taxonomy?