Support

Home Forums Event Espresso Premium Sorting Events by Start Date

Sorting Events by Start Date

Posted: November 9, 2020 at 1:33 pm

Viewing 7 reply threads


greenmellen

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?


Tony

  • 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.


greenmellen

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.

https://www.dropbox.com/s/3z32jw6t1oswin9/Screen%20Shot%202020-11-10%20at%209.46.04%20AM.png?dl=0

https://www.dropbox.com/s/z6f4j14f85pk2fj/Screen%20Shot%202020-11-10%20at%209.46.45%20AM.png?dl=0


Tony

  • 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)?


greenmellen

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)


Tony

  • 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]eventespresso.com


greenmellen

November 12, 2020 at 10:49 am

This reply has been marked as private.


Tony

  • 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:

https://monosnap.com/file/PljpmilcEz99ndaoVpmLBjJZcxpx8M

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

https://monosnap.com/file/e1sUvQZNtpCnXSorJNq0i9a38eKpZq

Viewing 7 reply threads

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