Home › Toolset Professional Support › [Resolved] How to only show future events
Problem:
In a View that lists events, how to only show current and future events.
Solution:
Include a Query Filter for the event date field such that it should be greater than or equal to TODAY().
Relevant Documentation:
https://toolset.com/documentation/user-guides/date-filters/
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
Tagged: Views, Views plugin
This topic contains 2 replies, has 2 voices.
Last updated by ruudd 6 years, 6 months ago.
Assisted by: Nigel.
Tell us what you are trying to do?
I'm trying to built a calendar with Toolset, and was wondering how to hide past events. I noted another ticket referring to this; reference was made to a feature that would allow for this, without getting in the details. Moreover, that ticket was 6 years old.
Is there any documentation that you are following?
No
Is there a similar example that we can see?
No
What is the link to your site?
hidden link
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Ruud
You have an event post type and have a custom field for the date of the event?
And you want a View to list events, but only show current/future events, something like that?
You would add a Query Filter for your date field that it should be greater than or equal to TODAY().
See https://toolset.com/documentation/user-guides/date-filters/
Or did you mean something else?
Thanks Nigel.