Support

Home Forums Event Espresso Premium Change order of events within category

Change order of events within category

Posted: May 5, 2022 at 12:34 pm


bhesketh

May 5, 2022 at 12:34 pm

Hello

I need to change the order of events showed on category pages. Right now events are sorted by eventID, but I need to sort them by date ASC.

How can I do that?

Thank you!


Sam

  • Support Staff

May 6, 2022 at 6:16 am

Hi Bob,

Thank you for contacting us today.

By default, the events should already be shorted in ASC order as per the event dates in the Event category page.

Please share me some more details with screenshot if you are referring to anything else.
https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

Looking forward to helping you.

Thank you.


bhesketh

May 8, 2022 at 12:01 pm

The listings are from multiple categories. Is it listing each category separately by date order? https://secondsixties.ca/event-category/hiking-outings/


bhesketh

May 8, 2022 at 12:06 pm

NOt sure how I clicked the submit button – not intentional. I think these are all coming from the [ESPRESSO_EVENTS category_slug=hiking-outings] category.


Tony

  • Support Staff

May 9, 2022 at 4:05 am

Hi there,

This page: https://secondsixties.ca/event-category/hiking-outings/

Is usually automatically generated using templates from within your theme (usually the taxonomy.php or archive.php template files) and then EE injects some additional details into the output.

You’ve mentioned the [ESPRESSO_EVENTS category_slug=hiking-outings] shortcode, do you see that in use when editing the above page?


bhesketh

May 17, 2022 at 11:41 am

No, we don’t use shortcode on that page, you’ re right it is automatically generated page.

How can we change the order of events on category pages or sort them by event start date but not event publish/creation date.


Joao Victor

  • Support Staff

May 17, 2022 at 5:42 pm

Hi there!

Thanks for contacting our support today!

The Events displayed on the Event Category Page are not ordered by ID, ASC, or DESC. The events are ordered by the closer Start Event Date, so it will display the closest events first. You can change this order by changing the Event Start Date.

Let me know if it works!


bhesketh

May 20, 2022 at 11:41 am

Can we provide you with the login information so that you can look at the page. The events are not listing by Event Start Date. That is the problem.


bhesketh

May 20, 2022 at 11:42 am

Here is the page https://secondsixties.ca/event-category/hiking-outings/


Joao Victor

  • Support Staff

May 24, 2022 at 6:22 pm

Hi there!

I have noticed your theme is Avada and we already know a few conflicts between Avada and Event Espresso. Could you please provide your WordPress access through this URL? https://eventespresso.com/send-login-details/ – we will look into this.

I am waiting for your comment on this.


Tony

  • Support Staff

May 24, 2022 at 9:58 pm

Hi there,

You could try adding this snippet to the site:

https://gist.github.com/joshfeck/69faa00989c3014d4fde

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That hooks into the category output and makes sure the query is set up to filter by datetime, if the above does not work the login credentials Joao mentioned will help narrow this down a little.

The support post ‘Change order of events within category’ 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