Hi, I've activated Relevanssi Pro to include taxonomies in the standard WP search result.
I've also created a custom archive for Search results with Toolset. The problem is that taxonomy terms don't appear in the search result. Toolset only offers the option to choose CPTs.
Thank you for contacting us and I'd be happy to assist.
I'm not sure, if I understand the requirement, correctly.
When you enable the taxonomy for indexing through Relevanssi, it is included in the search criteria for the text-based search. However, the taxonomy terms will only show in the search results though, if you've added a shortcode or a block to show them, specifically.
I hope this helps and please let me know if you meant something else.
Hi Waqar, is I use default theme and no custom archive, the serach result includes taxonomy terms (see image wp.jpg).
If I create a custom archive I cannot select taxonomies (see set.jpg) and I don't get taxonomy terms in the result (see custom.jpg).
How can I include taxonomy terms archives in the search result?
Thank you for sharing this update and I understand what you mean. When the Toolset's archive is set to be used for the search results, Relevanssi's feature to include the taxonomy term pages in the search results doesn't seem to work.
Can you please provide a copy of Relevanssi Premium plugin, so that I can test and investigate this further on my test website? I'll be in a better position to report this to the concerned team and see if some quick workaround can be arranged.
I can confirm that Relevanssi's feature for showing the archives pages in search is not supported by Toolset's search archive.
( because it is designed to handle only the loop for the post items and archives are not that )
One possible workaround, for someone with an absolute requirement, can be to create a regular page for each archive page that should be searchable and then set that page to redirect to the relevant archive page.