tribe_get_events order ASC?

Home Forums Calendar Products Events Calendar PRO tribe_get_events order ASC?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23773
    Paul
    Participant

    Hi, can one query ‘tribe_get_events’ in ASC order?
    tribe_get_events(array(
    ‘eventDisplay’=>’upcoming’,
    ‘orderby’=>’EventStartDate’,
    ‘order’ => ‘ASC’,
    ));
    This always displays them in descending order!
    Setting ‘order’ to ASC or DESC seems to make no difference. I need the most ‘recently upcoming’ event to show first. Any suggestions?
    Thanks!

    #24026
    Jonah
    Participant

    Hi Paul,

    Try switching the eventDisplay arg to ‘past’ instead. Each eventDisplay option sets it own order argument. You could also try using pre_get_posts to affect the query that way.

    I hope that helps!

    – Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘tribe_get_events order ASC?’ is closed to new replies.