pilgrimsPlease note! Thursday, November 27 is when the United States celebrates our Thanksgiving holiday. As a result, the forums will NOT be monitored from the afternoon of Wednesday 11/26 until Monday 12/1. Our 24 hour response times are suspended during this window, and threads posted Wednesday afternoon going forward will likely not receive replies before Monday. We appreciate your patience during this downtime as the team takes some time offline to recharge and be with their families. We will do our best to get everyone timely responses when the full team is back in action on December 1. Happy Thanksgiving!
tribe_get_events order ASC?
  • Stranger

    Topics: 1
    Paul August 17, 2012

    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!

  • Power User
    Posts: 4021
    Topics: 4
    Answers: 763
    Jonah August 23, 2012

    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)

This topic is closed