Remove Past Events From Search Results

I’m attempting to remove past events from The Events Calendar from my site’s search results. The search results include multiple post types including Events. This is the condition that I set for posts.

Only show posts if the start date of the event is after the current date.

{{dc:post:meta key="_eventstartdateutc" format="Y-m-d"}} after {{dc:global:date format="Y-m-d"}}

Unfortunately, this results in no posts appears. Not even events. What am I doing wrong?

Hello @santosfel5,

Thanks for writing in! Regretfully using the conditions is not the correct way of removing or hiding away the past events. Kindly check out these links instead:

Best Regards.

Thank you! The extension that allows the event to be deleted as soon as 15 minutes after completion resolved this issue.

You are most welcome, @santosfel5.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.