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

You must be logged in to reply to this support post. Sign In or Register for an Account

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

Updated by  Josh 18 hours, 33 minutes ago ago

Topic Tags

Notifications

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