I have an issue with the results received on the search results page. (WordPress search archive)
The post links are displayed as expected and when you click on a link in the results page you are taken to the post as expected.
I have some Taxonomy items that are displayed in the search results too.
I'm using relevannssi pro and have it set up to index taxonomies.
The issue is.
When I search for something. The results are displayed on the result page.
This includes the various post types as links.
It also displays taxonomy items as links but when you click on it - they only link to the homepage and not to the taxonomy item itself.
eg.
Search for "apple"
Results give you a list of links
link to post - onclick, this link will take you to the post - ie: sitename/post/apple
link to custom post type - onclick, this link will take you to the custom post type - ie: sitename/custompost/apple
link to taxonomy - onlick, this takes you to the home page NOT the taxonomy item - ie: sitename
link to custom post type - onclick, this link will take you to the custom post type - - ie: sitename/customposttype/apple
Is there a way to make taxonomy items into the search results page?
Do something like. Show only taxonomy items that are equal to the search term.
eg. Show only taxonomy item == search term
Dear COOP2016,
Please elaborate the question with more details:
Is there a way to make taxonomy items into the search results page?
How do you setup the “search results page”?
Are you using Views wordpress archive to setup the search result page?
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
Have you tried to setup the taxonomy filters in the wordpress archive?
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/
Search results page is set using WP archive.
It displays all posts and custom post types
It displays the taxonomy items .... but when you click on the like, it doesn't take you to the taxonomy item page. It just takes you to the Homepage.
I need taxonomy items to be found in a search and links to take me to the taxonomy item page.
How do you setup the "taxonomy item link"? please describe detail steps to duplicate same problem, I suggest you try with Views shortcode [wpv-post-taxonomy]:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy
It can display term's archive page links.
If the problem still persists, please check the compatibility problem:
deactivate other plugins and switch to wordpress default theme, and test again