Home Forums Event Espresso Premium Sorting Events by Start Date

Sorting Events by Start Date

Posted: November 9, 2020 at 1:33 pm


November 9, 2020 at 1:33 pm

Is there a function that I can add to our theme to have events sort automatically by the start date rather than the date they were published?


  • Support Staff

November 10, 2020 at 4:00 am

Hi there,

May I ask which output you are referring to here?

The reason I ask is the front end event lists should already be ordering by start date.


November 10, 2020 at 7:47 am

We have the events pulled into a Beaver Builder Archive page. It’s using the main query so nothing custom but it pulls the events based on the post date.


  • Support Staff

November 11, 2020 at 2:43 am

Hmm, that’s strange.

Have you modified the post date on your events to work around this as looking at your site they appear to be ordered by event start date ascending (which is the expected sort)?


November 11, 2020 at 7:25 am

Yes, the client adjusted the post dates because it wasn’t sorting correctly and they wanted to adjust it for now.

Any ideas why it wouldn’t sort by start date (showing the next event first, and later dates under that)


  • Support Staff

November 12, 2020 at 9:27 am

It’s been a little since I’ve used Beaver Builder but I’ll check the code if you can send over the version you are using on the site?

You’ll need to host the .zip file somewhere and post a link here to download or send it via something like WeTransfer to support[at]


November 12, 2020 at 10:49 am

This reply has been marked as private.


  • Support Staff

November 13, 2020 at 6:54 am

Thank you.

I guess I’m doing something different here as it’s working fine for me:

I’ve tried various different setups and changing the event dates re-orders the events as expected when ordering by event date, for example:

The support post ‘Sorting Events by Start 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