Skip Navigation

[Resolved] Search in all fields, not only post title and content

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

Problem:
Search in all fields, not only post title and content

Solution:
To make search keyword to search in custom fields you need to use the relevanssi plugin.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/search-in-all-fields-not-only-post-title-and-content/#post-922800

Relevant Documentation:
https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

This support ticket is created 6 years, 6 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 1 reply, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#922677

Tell us what you are trying to do?
I want to build a search where people can search free text in all the custom textfields I added to my post type. When I insert the search box it only lets me choose post title and content though. Is it not possible to search custom fields or am I doing something wrong?

#922800

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - To make search keyword to search in custom fields you need to use the relevanssi plugin.

I suggest you try to follow the following Doc:
=> https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

This is important:
=> https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/#which-custom-fields-can-i-add-to-relevanssis-index-with-toolset