Skip Navigation

[Resolved] View Filter

This thread is resolved. Here is a description of the problem and solution.

Problem:

I need to filter the view to show posts published on the current day and the past month.

Solution:

You can add a date filter like this:
Select posts whose

Published date is equal to: month:PAST_ONE(1), day:CURRENT_ONE()

Relevant Documentation:

https://toolset.com/documentation/user-guides/views/filtering-views-query-by-date/

This support ticket is created 3 years, 3 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)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by philipC-4 3 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1895583

I need to filter the view to show posts published on the current day and the past month.
I am currently getting the past month to show using: Published date is equal to: moth: PAST_ONE(1)
but I cannot get the current day to display.
Thank you for your help!

#1896003

Hello,

You can add a date filter like this:
Select posts whose
Published date is equal to: month:PAST_ONE(1), day:CURRENT_ONE()

More help:
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-date/

#1896305

Thank you for the response!
When I add day:CURRENT_ONE() the view no longer pulls any results.

#1896343

It also appears that any additional secondary filter added breaks the view and it no longer pulls results.

#1896757

I have tried the date filters in my localhost, it works fine.

For the problem:

any additional secondary filter added breaks the view

Please provide detail steps to reproduce the problem, what additional secondary filter are you using?

#1897513

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.