Skip Navigation

[Resolved] Filter View by Custom Date Field Range

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by PaigeH5854 1 year, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2597903

I have a custom date field called: DOB
I want to filter for posts with DOBs within one year before the current date.

I can see the custom field in the drop-down menu of the Add Query Filter to this View.
I'm using the following in my filter:
The field Date of Birth is a NUMBER.

However, I don't seem to be able to get the right combination to show my posts with the DOB for the last year only.

Can you assist?

#2598585

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you set the custom field field as number and then "between" past date 365 and now.

Please check the following screenshot:
- hidden link

#2600919

Thank you for the explicit solution! i had looked for details on using the filters. Your solution should be added as an example, and likely some others as well. Great job! Thank you very much, - Paige