Did you try with: get_adjacent_post
?
get_adjacent_post(false, 'YourID', false);
Related Posts:
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Modify previous and next post links to current Authors Other posts
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- 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 make get_next_post() return first post when viewing last one
- 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
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- 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
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Display next 3 posts based on custom taxonomy
- Change URL of previous posts and next posts link in WordPress
- 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
- Linking Two Post Types
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- How do I write this SQL statement for Posts written in last 24 hours?
- 960gs different classes on teasers posts
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Structuring a product catalogue in WordPress [closed]
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Multiple information using custom post type
- Disabling post_type in URL
- Select menu should display categories and the item’s depth
- Before Delete Post
- current-menu-item not working with custom post type
- Showing Custom Content in a Nav Dropdown
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- I am having a problem with form updating/editing WordPress post on the frontend
- How to filter the taxonomy terms based on another taxonomy term
- Why my custom post posts aren’t showing (404 error / page not found)
- Automaticly add slug to posts
- How to Separate CPT From Regular Posts?
- Remove rows in the manage post/page view
- Display only one post each WEEK
- Paging doesn’t work?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Hide post navigation if current post is in a category with only one post
- Set a checkmark in a category based on a URL-parameter
- Portfolio Page for Classic Posts
- Limit the post for differents custom post type in the same wp_query
- next/previous links on custom post single a little screwy
- How can i create an custom post template for an specific post category? [closed]
- WP the_posts() on single-cars.php get category link
- how to check if custom post title exists or not?
- Display an authors post on a single page only when they are logged in
- Displaying Custom Posts
- Get_the_terms restrict output
- Batch Extract Date from post title and put into ACF custom field
- List All Custom Post Types Posts in Nav Menu Dynamically
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- Different post title, keywords and description
- how to get options to choose post format in add new post
- Custom post type filter is being applied to all of my posts
- Admin slow on Postlist (over 30k Posts in Database)
- Get_post_custom not fetching value from array wordpress
- Display Parent-Child Posts in specific order by comparing IDs in array
- Post category behave like a Post in back office menu
- Save data is post using php front end
- What is the best way to structure posts for the same event happening in different years?
- How to display custom field in product description?
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Custom page with no headers, footers and its own CSS, Javascript
- How to create a Child & Siblings menu for a custom post type?
- SEARCH QUERIES – REVERSE OUTPUT
- Is there a way to create a sidebar of bullets
- I cannot display custom posts in custom taxonomy
- How to get the posts that my following users are liked?
- How to insert post 6 times after user register like ask.fm
- How can i order my posts by post type?
- Creating custom post type relationships
- How to mark posts as visited
- Custom nav menu current item custom link problem
- How To Loop Through list with Custom Post Types
- Adding Information To All Posts Screen
- Different post types arranged on one page
- erase post excerpt limitation [×]
- Display all post types together
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- current_page_item and custom post type?
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj
- How to make a non-public post on wordpress approval?
- How Do I Add a Custom Post Type URL to Content?
- is therer any wordpress function to retrieve a specific html element from post content