I have an event loop and I'm wondering if it's possible to offset the loop by -1, so the prev and next posts of the current post are shown.
EDIT - Thanks for your comments, I think I can clarify. When a visitor is on a single-event page, I want to show 4 events at the bottom of the page; the first 2 being past events and the next 2 being upcoming events. I think I need to query all of the events, get the position of the current event result, subtract 2 from that number, and apply that number to the offset.
$upcoming_events_args = array(
'post_type' => 'event',
'meta_key' => 'start_date', // name of custom field
'orderby' => 'meta_value_num',
'order' => 'ASC',
'posts_per_page' => '3',
'meta_query' => array(
array(
'key' => 'start_date',
'value' => $date_of_page,
'compare' => '>=',
'type' => 'DATE'
)
)
);