Passer la navigation

[Résolu] Filter View by Custom Date Field Range

This support ticket is created Il y a 2 années et 2 mois. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par PaigeH5854 Il y a 2 années et 2 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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:
- lien caché

#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