I want to find the next post by creation date relative to the current post.
Possibly through WP_Query using the following arguments
// Find connected posts
$episodesAnime = new WP_Query( array(
'connected_type' => 'posts_to_anime',
'connected_items' => get_queried_object(),
'nopaging' => true,
'order-by' => 'date',
'order' => ASC,
) );
With a while loop I can get all the posts that I want. Now I want to make it so it only shows the posts that are ahead and behind the actual post that the user is currently on.
How would I go about doing that?