Skip Navigation

[Resolved] Text search in ustom fields WITHOUT relevanssi?

This support ticket is created 2 years, 8 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
- 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 3 replies, has 2 voices.

Last updated by Luo Yang 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2343919

a.R

Hi 🙂

With relevanssi, we can´t get that to work, AND it relevanssi interferes with buddyboss global search.

So how do it without relevanssi?

Thank you

#2344355

Hello,

Please elaborate the question with more details:
Where and how do you want to search the custom fields?
Are you going to setup a custom search form with one search input box, and search post title + post body + custom fields?
If it is, you will need to follow our document to integrate relevanssi plugin with Toolset search form:
https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/
section "Including custom fields in the search"

#2344455

a.R

It´s here: hidden link

Yes, we´re going to setup a custom search form with one search input box, and search post title + post body + custom fields.

As I said, we REALLY don´t want to use relevanssi as it causes problems for us.

Couldn´t we do something like this?
hidden link
Do we have to change something here for TOOLSET?

#2344461

Unfortunately, there isn't such kind of built-in feature within Toolset plugins, the search box works for post body/title by default, you can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

You might consider custom codes, for example, when user fill and submit the search form, use filter hook "wpv_filter_query" to trigger a custom PHP function:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
In this PHP function, change view's query as what you want.