Skip Navigation

[Resolved] Filter about age from birthday

This support ticket is created 4 years, 1 month 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.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1890607

Hello, I created a field into toolset with birthday date.
Now I would like to create a search by age (example 1 year, 2 years, etc ...).
How can I manage the birthday date with age in the search?
Regards

#1891257

Hello,

There isn't such kind of built-in feature within Toolset plugins, it needs custom codes, for example, below thread:
https://toolset.com/forums/topic/searching-by-age-range-with-multiple-values/#post-602887
Above thread is using a custom post field "Birthday", and use "wpv_filter_query" to add a custom filter to results.

More help:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query