Query_post 5 post first / last of post_id
Here I’ve written a function for you. It will return you an array of posts. You need to use is as wpse_243452_get_posts_by_ids( 50, 5, false ) if you need to get next X posts then just pass the second parameter as the integer number how many posts you need and then pass true. If you … Read more