Show next x number of posts depending on current post in WordPress

In a previous post we looked at how to order and number WordPress posts sequentially but what if you want to show the next x number of posts based on the current post on say a custom post detail page. Here’s how you can do it:- Show next x number of posts depending on Current Post What the code does is …