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 pull the current post/custom post type and then show a specified number of next posts. In our case it's 3 so you can swap out '3' above to specify the number of 'next' posts to show. if you get to the end of your posts then it will display a link back to the main listing page (you need to specify your own landing page / directory).