Support

Home Forums Event Espresso Premium Display Expired Event Datetimes

Display Expired Event Datetimes

Posted: February 29, 2016 at 10:21 am


BIGsrls

February 29, 2016 at 10:21 am

Hello,
it is possibile to display expired Event Datetimes in the Event general description?
Please, see the screenshot: https://www.dropbox.com/s/29mkgiyqfnmluzt/eventdatatime.jpg?dl=0


Tony

  • Support Staff

March 1, 2016 at 4:39 am

Hi there,

To do this your going to need to load your own version of the template file used to load the datetimes, are you using a child theme currently?

If not you’ll want to set one up for your current theme (otherwise if you update the theme you’ll lose the custom template) you can follow the guide post here:

https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/

To set one up.

Then you need to grab the current template used by EE and place that within your child theme. Within:

/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014

You’ll find the content-espresso_events-datetimes.php template file.

Copy that to the root directory of your child theme, then in that location edit the file and change this:

espresso_list_of_event_dates( $post->ID );

To this:

espresso_list_of_event_dates( $post->ID, '', '', true, true );

That tells the function to include expired datetimes within the list.

The support post ‘Display Expired Event Datetimes’ 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