Support

Home Forums Event Espresso Premium Event Espresso Grid View Sort by start date

Event Espresso Grid View Sort by start date

Posted: April 17, 2019 at 4:37 am


martin.mannimets

April 17, 2019 at 4:37 am

Hi!

Is it possible to sort events by start date.

I have event “TEST” from 17.04.2019 – 17.05.2019.
When i use shortcode:
[ESPRESSO_GRID_TEMPLATE month=april-2019]
then i see my event “test” here. And thats okei.

When i use shortcode:
[ESPRESSO_GRID_TEMPLATE month=may-2019]
Then i see same event “TEST” here to. But i dont want to see it here.

If event starts in april i would like to see it only under april events not under may.

Martin


Josh

  • Support Staff

April 17, 2019 at 3:52 pm

Hi,

The events are sorted by start date, but it appears you’re asking if it’s possible to remove events that occur in May, but don’t start in May, from being included when the shortcode includes month=may-2019. This would require some customizations to the query, which could get messy.

Another solution would be to append the month name to the grid template whenever the events go into a new month. Here’s a gist that shows how to add this:

https://gist.github.com/joshfeck/eef917b1338fe9c7af0a2ba93478d65a

The support post ‘Event Espresso Grid View Sort 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!