Forums › Forums › Search & Filter Pro › Custom Taxonomy: Make Taxonomy searchable
- This topic has 5 replies, 2 voices, and was last updated 3 years, 10 months ago by Trevor.
-
Anonymous(Private) January 8, 2021 at 1:32 pm #272095
Hi Trevor,
I followed your guideline on how to add Custom Taxonomies sucessfully.
Now I added some new Taxonomies (e.g. “children”) and used the Taxonomy Description with some synonyms (e.g. “kindergarden, childcare”) for this taxonomy: My approach does not work – when searching for “childcare” it does not show me the pages with the “children” taxonomy.
I have 2 questions:
1) Is this a good way to add syonyms?
2) How to include the taxonomy description when searching?Thanks for your help,
PhilippTrevor(Private) January 8, 2021 at 1:43 pm #272098The taxonomy field in the Form UI will only find exact matches in the taxonomy terms.
Are you wanting to search using the text search box?
If so, note that the Search & Filter Pro Text Search field uses the standard WordPress search, so looks only in the Post Title and Content, and in only their ‘standard’ way. To help you control this better, on the form’s Advanced settings tab you will see 2 settings for Relevanssi (one of which is Relevance).
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