Problem:
How to add a filter to only display posts between two dates (a backend filter).
Solution:
You need to insert two Query Filters in your View, one for each field.
You would specify that the start date should be less than TODAY(), and the end date is greater than TODAY().
Note that dates in filters are treated as numbers, and in the example we use the UNSIGNED number type.
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)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 5 months ago.
Assisted by: Nigel.