Problem:
How to filter posts to only show posts with a date field set to tomorrow?
Solution:
Date fields are saved as timestamps (the number of seconds since 1970) and so the filter needs to compare the field as a number, which in this case should be equal to FUTURE_DAY of 1, i.e. one day forward, or tomorrow.
Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
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)
Este tema contiene 18 respuestas, tiene 2 mensajes.
Última actualización por hace 5 años, 6 meses.
Asistido por: Nigel.