Skip Navigation

[Resolved] I want to hide past events in a list of dated event from events post type

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#958275

I am trying to: Hide the past events in a list of events

Link to a page where the issue can be seen: hidden link

I expected to see: Dates from today onwards

Instead, I got: Dates in the past

#958688

Hello,

Are you using the plugin "Events Manager" to setup the events post type and date field?
https://wordpress.org/plugins/events-manager/

If it is, you can check it with author of plugin "Events Manager":
Is there any PHP function can check if the "Event" post is future or past, then you can use it in Views shortcode [wpv-conditional], and hide the past events in a list of event, see our document
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-custom-functions-in-conditions/