Skip Navigation

[Resolved] Taxonomy items in the Search Results Page

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#592606

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

#592711

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/

#592916

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.

#593195

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

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.