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 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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by philipC-4 6 months, 3 weeks ago.

Assigned support staff: 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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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!