Support

Home Forums Event Espresso Premium Sort events by event end date

Sort events by event end date

Posted: April 20, 2020 at 1:31 am

Viewing 1 reply thread


KBrownlee

April 20, 2020 at 1:31 am

Hi there,

I would like to display the events sorted by their end date. How can do that via EventListQuery?

Thank you!


Tony

  • Support Staff

April 20, 2020 at 8:56 am

Hi there,

If using EventListQuery you should just be able to add 'order_by' => 'end_date', to your query attributes.

If not can you post an example of your code so we can check?

You can add a link to a Gist or Pastebin here for us to view.

Viewing 1 reply thread

The support post ‘Sort events by event end date’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso