Conflict with Post Types Order – Events out of order

Home Forums Calendar Products Events Calendar PRO Conflict with Post Types Order – Events out of order

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1248992
    smscmarketing
    Participant

    I don’t need any support, I just wanted to share this as I have seen a few people posting similar issues as I was experiencing. I didn’t see any solutions here yet.

    It looks like there is a conflict between The Event Calendar and Post Types Order that causes the query to go haywire. When paging forward past the first page in list view, all the events go out of order instead of continuing on ascending by date.

    https://wordpress.org/support/topic/conflict-with-events-calendar-by-modern-tribe/

    The fix is to add this to your functions.php

    function ignore_post_types_order_sort( $args ) {
    $args[‘ignore_custom_sort’] = true;

    return $args;
    }
    add_filter( ‘tribe_events_listview_ajax_get_event_args’, ‘ignore_post_types_order_sort’ );

    Hopefully this helps someone.

    #1250197
    Cliff
    Member

    Thanks so much. I’ll pass this along to our developers and leave this thread here in case it can help others in the future.

    Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Conflict with Post Types Order – Events out of order’ is closed to new replies.