Support

Home Forums Event Espresso Premium Slow slow slow Calendar

Slow slow slow Calendar

Posted: February 4, 2019 at 11:46 am


scaldwell

February 4, 2019 at 11:46 am

https://hoffmanarts.org/calendar/

What would you guys suggest on speeding up our Events Calendar? The client is getting complaints – especially on mobile…. I’m not 100% sure what to try…

Thank you!
Shelly


Josh

  • Support Staff

February 4, 2019 at 2:48 pm

Hi Shelly,

You could speed things up by setting show_expired=false to the calendar shortcode. This will affect the speed because it will no longer need to query through all of the old events when it builds the calendar.

e.g.

[ESPRESSO_CALENDAR show_expired=false]


scaldwell

February 5, 2019 at 9:39 am

Turns out this works to speed it up but it also seems to hide events that have dates in the past AND dates in the future like this guy: https://hoffmanarts.org/events/open-clay-studio-36/

That seems weird since they entered in unique date times. But I might be confused.

All I know is that when I added this little bit to the shortcode, the Open Clay Studio disappeared from the Calendar.

Thanks Josh!
S


Josh

  • Support Staff

February 5, 2019 at 11:41 am

Hi Shelly,

It looks like that’s because Open Clay Studio has no tickets on sale anymore. What you can do is apply a filter and that event (and other like events with no tickets on sale at the moment) will continue to display with show_expired=false. Here’s a code snippet that adds the filter:

https://gist.github.com/joshfeck/1d0c78e541b4e24fd744b8805499bb6e

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


scaldwell

February 5, 2019 at 11:57 am

Thanks Josh – we’ll try that. You are a Gem!

The support post ‘Slow slow slow Calendar’ 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  scaldwell 2 months, 2 weeks ago ago

Topic Tags

Tagged: 

Notifications

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