I would like a second WP_Query on a custom post type's single page to return 5 posts, starting with two before the current post, so that I get this:
- The-one-before-the-previous post
- Previous post
- Current post
- Next post
- The-one-after-the-next post
How can I do this? offset is only good if I know the number of the current post.
In pseudo-code it's easy:
$gallery = new WP_Query(array(
'post_type' => 'artwork',
'posts_per_page' => 5,
'fake-offset' => $current->ID-2 //This is imaginary
));
Thanks in advance!
