Skip Navigation

[Closed] Search suggestions based on taxonomy term

This support ticket is created 3 years, 7 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 3 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1784785

Tell us what you are trying to do?

The website helps someone with a problem find support ('resources').
Each resource post is matched to a taxonomy term under a problem category e.g. "addiction" "debt".

I would like the search bar to operate like this:
- User types in three characters to search bar e.g. "add" and addiction, or other problem terms that contain that, are shown as suggested terms (sorry, don't know if this is the right terminology). Note - only problem terms should be visible, not resource title or other information.
- If the user clicks on one of those suggested terms, they are taken to an archive page which shows all resources that connect to that problem term.

However, if the user searches some random term, bypassing the suggested terms, they are taken to a page which shows suggested terms above resources.

I am not quite sure where to start/ how to achieve this.

Any advice is welcome!

#1786291

Hi, it sounds like you're looking for a search input type called "autosuggest" or "typeahead", like you would find in the Google search bar. There's no search input field types like that in the Toolset software, so it would require some advanced custom code to implement something exactly like that. Without a JavaScript API for Views filters, there's not much documentation or support references available here on the site for creating such a feature. The filter options available are plain text, checkboxes, select fields, and radio button inputs. I can help you implement any of those in a standard search View for posts of some kind.

The topic ‘[Closed] Search suggestions based on taxonomy term’ is closed to new replies.