Skip Navigation

[Resolved] Filter about age from birthday

This support ticket is created 3 years, 11 months 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.

Our next available supporter will start replying to tickets in about 1.24 hours from now. Thank you for your understanding.

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 3 years, 11 months 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