Skip Navigation

[Resolved] I am trying to add a custom filter to my search page results

This thread is resolved. Here is a description of the problem and solution.

Problem:
I am trying to add a custom filter to my search page results

Solution:
When you use custom shortcode/function inside with [wpv-conditional] shortcode you need to register that at:
=> Toolset => Settings => Front-end Content tab => Functions inside conditional evaluations

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/i-am-trying-to-add-a-custom-filter-to-my-search-page-results/#post-1207368

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-custom-functions-in-conditions/#custom-functions

This support ticket is created 5 years, 9 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.

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 2 replies, has 2 voices.

Last updated by jonathanB-19 5 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1207251

I found this post https://toolset.com/forums/topic/ordering-a-parametric-search-view-by-taxonomy/#post-1207055 that does exactly what I want to do. I commented at the end with my code, but because it was a closed post, I wasn't sure if anyone would see it. Can you put me in the queue for a response?

#1207368

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I would like to know here have you registered the custom function anets_post_has_term_separator at:
=> Toolset => Settings => Front-end Content tab => Functions inside conditional evaluations

More info:
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-custom-functions-in-conditions/#custom-functions

#1208636

Yes, that was the problem. It's working now. Thank you!