Skip Navigation

[Resolved] Search multiple custom field with single search bar

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 1 year, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2610875
Screenshot 2023-05-28 at 9.30.35 PM.png

Dear Sir/Madam,

I want to have one search bar which can be applied to multiple custom fields.

Refer to attached screenshot, I want to have one search bar to search both title and custom field 'relationship', can I do that?

#2610979

Hello,

You can follow our document to integrate Toolset and Relevanssi plugin:
https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/
Searching Texts in Custom Fields with Toolset and Relevanssi in WordPress

#2612427

Dear Luo Yang,

Thanks for your reply. If I add several custom fields from different post type as the search fields, will the search result be included if I only search from specific post type view?

#2612521

Yes, if you only search from specific post type view, it will return results that contain your custom fields.