Skip Navigation

[Resolved] Sub Categories Placement in Custom Search

This support ticket is created 2 years, 4 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 4 replies, has 2 voices.

Last updated by fahimS-2 2 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#2545017

Tell us what you are trying to do?
Ans: I am creating a custom search with a custom taxonomy called features. So I have 4 options in that taxonomy. One of the options has 4 sub-options. Now in the search page all of the options are appearing In the following manner.
Option 1
Option 2
Option 3
Sub Option 1
Sub Option 2
Sub Option 3
Sub Option 4
Option 4

But I want them to appear like:
Option 1
Option 2
Option 3
------Sub Option 1
------Sub Option 2
------Sub Option 3
------Sub Option 4
Option 4

So that people can understand the subcategories. Spaces are represented with (-) Sign. What can I do?

#2545305

Hello,

In the custom search form, you can setup the taxonomy filter as "Select dropdown" type, so it will display as what you want in frontend, see below test site:
Login URL:
hidden link

Page with search form:
hidden link

#2546331

In Select Dropdown type filter, I can't select multiple options at a time. That's why i wanted to use checkboxes. Is it possible to select multiple items in dropdown?

#2546955
select-multiple.jpg

You just need to change the option "TYPE OF CONTROL" to: Select multiple

For example, edit the result page:
hidden link
find and select the "Categories" field, in the setting panel, change option "TYPE OF CONTROL" to: Select multiple
See my screenshot

#2546967

My issue is resolved now. Thank you!