Skip Navigation

[Resolved] Make search filter look into categories

This support ticket is created 2 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by EricB-14 2 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2348851

Hi,

I have a website on which I'm using a view with 3 dropdown filters, one for each category of my custom post type, plus one search box ([wpv-filter-search-box]). The thing is, the search box seems to be looking only in the title and content of my post, but not in the categories. So let's say I have category called "Document Type" and I set the filter to "Contracts", I get all the posts with "Contracts" as a term. But if I write "contracts", the search returns only posts that have the word "contracts" in either title of content. Is there a way for me to include category and terms in the search box results?

Thank you.

#2348939

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Eric,

Thank you for getting in touch.

The text search filter can only search through the Post Title and Post Content. Additionally custom fields can be searched through if you have the Relevanssi plugin installed.

The only way to perform a search through the categories as well is to combine the text search with the separate taxonomy filter for your frontend filters.

Thanks,
Shane

#2349841

HI,

I looked into Relevanssi and did all the steps listed on both these pages, but still nothing.
https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/
hidden link

Do you have a more precise tutorial page on how to include custom fields with Relevanssi in a search box within a Toolset View?

#2349863

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Eric,

Once you installed the relevanssi plugin you will then need to remove your existing text search and then re-add it.

Upon re-adding the text search filter you should be presented with 3 options, one of which will include the ability to have the custom fields as a part of the search filter.

This is depicted here below.
https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/#integration-with-custom-searches

Are you not seeing this option ? If so would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

Thanks,
Shane

#2349887

Ah yes I needed to delete the current search box to see the 3 options. I tried editing it but I had to delete it then create a new one. It's working.

My issue is resolved now. Thank you!