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.

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 1 week, 4 days ago ago

Topic Tags

Notifications

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