Support

Home Forums Event Espresso Premium Removing out of date events from front end of website

Removing out of date events from front end of website

Posted: April 19, 2015 at 4:16 pm

Viewing 5 reply threads


Nick

April 19, 2015 at 4:16 pm

Even though I have ‘Display Expired Events’ set to ‘No’ expired events are showing up on the front end of my site, i.e. the single event pages are still showing on the front end (I can navigate to them using the back/forward links). How can I prevent expired events from showing anywhere on my site.

Thanks,

Nick


Dean

April 20, 2015 at 6:37 am

Hi Nick,

I discussed this issue with a developer and he believes that this is not expected behaviour. The expired events will ALWAYS be available on the site, via direct URL, unless you delete them (this is for SEO and historical benefits). However the links should exclude them, even the themes next/prev ones.

I’ll raise a ticket to look into the issue further.


Nick

April 20, 2015 at 3:19 pm

Thanks Dean,

Yes, I am happy for the events to show if there’s a direct URL used – but I only want current/active events to be shown in the links.


Lorenzo Orlando Caum

  • Support Staff

April 20, 2015 at 5:34 pm

Hi Nick,

Try this sample coding for removing events from your event listing pages:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo


Nick

April 20, 2015 at 5:39 pm

I have now tried this Lorenzo and I am still seeing links to old events.

Nick


Lorenzo Orlando Caum

  • Support Staff

April 21, 2015 at 9:38 am

Hi, the code snippet only affects the event listing pages. It will not affect events in the next / previous links on the single event pages.

There is an open ticket for that enhancement.


Lorenzo

Viewing 5 reply threads

The support post ‘Removing out of date events from front end of website’ 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