Support

Home Forums Event Espresso Premium Expired events still showing up?

Expired events still showing up?

Posted: August 2, 2021 at 11:16 am

Viewing 3 reply threads


HC4Wb

August 2, 2021 at 11:16 am

Hello we have expired events that are showing up on our page? https://thehmrcenter.com/classes/nutrition-and-exercise-in-menopause-class/

How do I remove them? I checked under Templates and the Display Expired Events is set to NO.


Tony

  • Support Staff

August 2, 2021 at 2:28 pm

Hi there,

The page you linked to is a single event page so I assume you mean the list of datetimes shown towards the bottom of the page?

That list shows any upcoming datetimes (and excludes expired datetimes) until all datetimes in the event have expired, in which case it then shows all datetimes as it’s a reference for the specific event they are linked to.

The option you changes in the templates section removes expired events from your event lists (such as the default /events/ output or a page using [ESPRESSO_EVENTS]).

If you add a new upcoming datetime to that event, do the other expired ones stop displaying?


HC4Wb

August 2, 2021 at 3:05 pm

Thanks after I added the 2 new classes the expired ones disappeared.

Is there a way to hide the expired classes after all the classes are expired, as we would still like to have the page up but not have the expired classes show when we have no other upcoming classes.


Tony

  • Support Staff

August 3, 2021 at 4:09 am

Yes, it’s possible to do but you need to load a custom template to replace the original.

Copy \event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_events-datetimes.php into the root directory of your sites theme (preferably a child theme).

Then in that new custom template in your child theme change line 9 from:

<?php espresso_list_of_event_dates( $post->ID );?>

To this:

<?php espresso_list_of_event_dates( $post->ID, '', '', true, false );?>

Viewing 3 reply threads

The support post ‘Expired events still showing up?’ 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