Navigation überspringen

[Gelöst] Filter View by Custom Date Field Range

This support ticket is created vor 2 Jahre, 2 Monaten. 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.

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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von PaigeH5854 vor 2 Jahre, 2 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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:
- versteckter 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