Skip Navigation

[Assigned] View should default to “last 5 years only” based on plain-text date field

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 3 replies, has 1 voice.

Last updated by henrikeS 20 hours, 21 minutes ago.

Assisted by: Minesh.

Author
Posts
#2823452

Hello Toolset Support,

after implementing the new postal code search on our therapist list page, the existing filter stopped working. It seems that the new search is blocking or overriding it.

Here is the page in question: hidden link

The filter in question is the “5-year rule filter”:
- We have custom fields for proof of training (“Nachweise”).
- Each proof has a date value stored as a plain text date string.
- The goal of the filter is: only display therapists where at least one proof is not older than 5 years.
- On the children list (another view) the same filter logic is already working fine.

My questions:
- Could you please check why the 5-year filter is no longer working on the therapist list since the postal code search was added?
- Is it possible to combine the new postal code search with the 5-year filter logic, so that both conditions apply (postal code + 5-year validity)?

Thanks a lot for your help!

Best regards

#2823465

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and once I review the structure you have I will get in touch with you with the possible solution or workaround if exists.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2823947

Minesh
Supporter

Languages: English (English )

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

I see you added custom code to build functionality to search with zipcode.

I'm not sure why you added such custom code as Toolset offers the custom search with address. Please check the following doc:
- https://toolset.com/documentation/legacy-features/maps-plugin/filtering-and-ordering-map-markers-by-distance/

#2823968

I added the custom code because the cliente wanted the filter inside and outside the radius at the same time and this was not possible in the toolset options.
Did you the the custom code of the five-year-filters:
filter_nachweise_jahr --> this one is interferring with the view search
and filter_nachweise_jahr_kinderliste --> this one is working.
Maybe there is a way to combine both so that is working.