Support

Home Forums Event Espresso Premium Sort Event page by date

Sort Event page by date

Posted: October 18, 2019 at 8:24 am

Viewing 5 reply threads


CSTEd

October 18, 2019 at 8:24 am

Hello,

I would like to sort the default events page by date, and I don’t see an option for that in the events template page. I’m talking about the XXX.com/events/ page. I see how I can modify the order of information displayed, but not the SORT of the events themselves. Any help would be greatly appreciated!


Josh

  • Support Staff

October 18, 2019 at 11:58 am

Hi,

The page should already be sorted by date, specifically the start date for each event. Is that not what’s happening on your site?


CSTEd

October 18, 2019 at 1:59 pm

Hi,
Thanks for the quick reply. I’m trying to get it to sort in reverse order with the newest events available on top, and the older events on the bottom. Is that possible?


Josh

  • Support Staff

October 18, 2019 at 2:49 pm

It’s possible to change to a sort in reverse, but I’m not 100% sure what you’re asking for because a new event and sorting in reverse order could mean two different things.

Are you looking to put the newest published events first (where an event that was published today, regardless of its start date would display before other events)?

Or, are you looking to simply reverse the order where the first displayed event’s start date is the farthest out into the future.


CSTEd

October 19, 2019 at 1:51 pm

Looking to put the newest published event first regardless of start date. Thanks!


Josh

  • Support Staff

October 21, 2019 at 11:30 am

Hi,

You can set the newest published events to show first by adding the code from this snippet:

https://gist.github.com/joshfeck/1867f1f52bffbbc77a373ee0ca63925e

You can add the above to a functions plugin or into your WordPress child theme’s functions.php file.

Viewing 5 reply threads

The support post ‘Sort Event page by 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