Forums › Forums › Search & Filter Pro › How to include tags when searching
- This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by Trevor.
-
Anonymous(Private) May 18, 2020 at 8:21 am #244388
I assume the search function only searches through the title and the description of the post when searching. How can I edit this so it also looks through tags? I have a post that is essentially about ‘selling’ but doesn’t actually have that word in the title or description. It has ‘selling’ as a category but does not show up when someone types in ‘sell’ or ‘selling’. I assumed the search function would also search the tags but it doesn’t appear to be. Can I change a setting somewhere to make sure it does?
Trevor(Private) May 18, 2020 at 12:01 pm #244460If you want the text search to look there, then note that our plugin does not directly allow you to do text searches of individual Post Meta (custom fields) and Taxonomy (Category, Tags and Taxonomies) data/terms. The Search & Filter Pro Text Search field uses the standard WordPress search, so looks only in the Post Title and Content. To help you control this better, on the form’s Advanced settings tab you will see 2 settings for Relevanssi.
The documentation for this is here:
https://www.designsandcode.com/documentation/search-filter-pro/3rd-party/relevanssi/
You would need to install and activate the free Relevanssi plugin as well.
Then set Relevanssi up and build its index (make sure it is indexing the desired post types, custom fields AND any taxonomy that you want to search).
-
AuthorPosts