Dear Support Team
Tell us what you are trying to do?
I want to show posts which are published on different dates. I have three views for that: In the first view I want to show only posts published today. In the second view I want to show only posts published yesterday. And in the third view I want to show posts published before yesterday.
I don`t know how to set the query filter for each view correctly.
You can see a video description here: enlace oculto
Is there any documentation that you are following?
I was reading this documentation: https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-query-by-date/
Thanks,
Philipp
Hi Philipp
I understand it can be a little confusing knowing how to specify the relative dates.
For the first View, published today, you want published date equal to
Year => CURRENT_ONE
Month => CURRENT_ONE
Day => CURRENT_ONE
For the second View, published yesterday, you want published date equal to
Year => CURRENT_ONE
Month => CURRENT_ONE
Day => PAST_ONE => 1
For the third View, published before yesterday, you want published date before
Year => CURRENT_ONE
Month => CURRENT_ONE
Day => PAST_ONE => 1