Support

Home Forums Event Espresso Premium show expired events on single event page (and NOT grid view)

show expired events on single event page (and NOT grid view)

Posted: July 17, 2019 at 3:57 am


adasch

July 17, 2019 at 3:57 am

Hi,
I have multiple events. Someof them have multiple dates.
I’m using the grid view which perfectly shows the events in the right order (the very next date from each event). Super!

Now I’d like to show the expired dates ONLY on the single event page. Is that possible? I found another thread from 2015 where it say’s it’s not. did anything change in that matter?

https://eventespresso.com/topic/show-expired-events-on-single-event-page/

Thanks!


Josh

  • Support Staff

July 17, 2019 at 1:18 pm

Hi,

What you can do is copy the content-espresso_events-datetimes.php from EE4 core and put the copy into your active WP theme. Then you make this edit:

<?php espresso_list_of_event_dates( $post->ID );?>
change it to:
<?php espresso_list_of_event_dates( $post->ID, '', '', true, true );?>

The template file to make a copy of is located in /public/Espresso_Arabica_2014/

The support post ‘show expired events on single event page (and NOT grid view)’ 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