Support

Home Forums Event Espresso Premium Events should be sorted by time and then by alphabetical order

Events should be sorted by time and then by alphabetical order

Posted: April 4, 2022 at 11:47 pm

Viewing 3 reply threads


cryamerica

April 4, 2022 at 11:47 pm

Hi,
Can we show events list in a page by using two sorting options like
1. Sort by Time
2. Sort by alphabetical order


Tony

  • Support Staff

April 6, 2022 at 10:37 am

Hi there,

May I ask which output are you using for the events currently?

I assume [ESPRESSO_EVENTS]?

If so have you tried setting order by start_date and event_name?

[ESPRESSO_EVENTS order_by=start_date,event_name]


cryamerica

April 7, 2022 at 12:39 am

This reply has been marked as private.


Tony

  • Support Staff

April 7, 2022 at 9:21 am

Not easily with the above but you can if you switch to using our model system:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

You can pass additional query params to the modals:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/model-query-params.md

The models then handle the joins for you which makes the above much easier to do.

Viewing 3 reply threads

The support post ‘Events should be sorted by time and then by alphabetical order’ 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