Support

Home Forums Event Espresso Premium Event Caledar Showing Expired Events with [ESPRESSO_CALENDAR show_expired=false]

Event Caledar Showing Expired Events with [ESPRESSO_CALENDAR show_expired=false]

Posted: August 9, 2019 at 12:17 pm


mkreik

August 9, 2019 at 12:17 pm

I put [ESPRESSO_CALENDAR show_expired=false] on the home page of my site and events that have end dates prior to today are showing up on the calendar. How can I leave those off? Also, do you have shortcode so that only the title of the event is shown on the calendar?


Josh

  • Support Staff

August 9, 2019 at 12:29 pm

Hi,

Normally when you add show_expired=false to the shortcode, it will remove calendar items from the past. If you place the shortcode on any other page does the same behavior occur?

You can change the calendar so only the title is shown by adding the following code snippet to a custom PHP plugin:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-calendar/tw_ee_EE_Datetime_In_Calendar__to_array_for_json__title.php

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

The support post ‘Event Caledar Showing Expired Events with [ESPRESSO_CALENDAR show_expired=false]’ 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