Hi, I have an event list page set up here: http://pcssmat.org/calendar-of-events/list/?action=tribe_list&tribe_event_display=past&tribe_eventcategory%5B%5D=9
So, basically the custom URL is saying to display past events in list form from category 9. I also have a function telling past events to display in reverse chronological order. Here’s the function:
function tribe_past_reverse_chronological ($post_object) {
$past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false;
if(tribe_is_past() || $past_ajax) {
$post_object = array_reverse($post_object);
}
return $post_object;
}
add_filter('the_posts', 'tribe_past_reverse_chronological', 100);
So, here’s the issue. If you scroll to the bottom of the page and click “Previous Events”, the events that show up on page 2 don’t continue seamlessly from the previous page and they’re no longer in reverse chronological order.
Any ideas? Thanks!