Hi I’m using EE4 on my site and as well as a custom query to pull in events on my events listing page, which works fine and I am not seeing expired events here. However, when using my global search expired events still display in the search results. Can you explain why this might be and any potential solutions? Is there a way to unpublish an event once its expired so the url is no longer available to view?
I have the setting “Display Expired Events” set to “no”.
Hi I’m using EE4 on my site and as well as a custom query to pull in events on my events listing page, which works fine and I am not seeing expired events here. However, when using my global search expired events still display in the search results. Can you explain why this might be and any potential solutions? Is there a way to unpublish an event once its expired so the url is no longer available to view?
I have the setting “Display Expired Events” set to “no”.
That’s actually expected because WordPress search does not filter those queries, and expired events are not automatically unpublished because otherwise that could cause some SEO issues (404s).
You can remove the expired events by adding some code to your website:
The support post ‘Expired Events Still Show Up in Global Search Results’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.