Tell us what you are trying to do?
I currently have a Filter which uses a dropdown menu to select a specific home and it will then display the results for that particular home, which works as expected (see attached screen grab for setup I currently have). However, I have been asked to amend the dropdown to list the results form homes form a geographical area instead of just individual homes.
e.g. there are 2 homes in the "West Coast" area, 5 homes in the Edinburgh & Lothian" area and 4 homes in the "Scottish Borders" area.
In the dropdown menu I would like to have the following – "Show All", "West Coast", Edinburgh & Lothian" and "Scottish Borders".
If I select "West Coast", I would like the results from both West Coast homes
If I select "Edinburgh & Lothian" I would like the results from all 5 homes in that area displayed
If I select "Scottish Borders" I would like the results from all 4 homes in that area displayed.
Is this possible and if so, how do I go about this?
What is the link to your site? hidden link
I will need to provide login details to let you be able to see the page in question if required.
Hello. Thank you for contacting the Toolset support.
There is no such feature available to implement such a dependent dropdown especially when you configured your values for your filter manually.
The only way to display the dependent filter is using post type. To implement such functionality - You should check the following example:
=> hidden link
- Please check “State” and “City” dropdowns with the search form where state and city both configured as post types and having one to many relationships between state and city.
To know more and learn about how the "State" and "City" drop-down setup, You can register test site on discover-wp.com to review how its setup and play with it. It’s totally free: http://www.discover-wp.com
Thanks for the reply. However, it's not really what I am looking for, as all I am trying to do really is to group some of the items together so that if they were selected from the dropdown, both sets of results would be shown.
I have attached a screen grab showing what I would like to achieve, or maybe I am being too simplistic and it does require some relationships set up.
If I select "West Coast", I would like the results from both West Coast homes
==> Based on the screenshot you shared, how to know what option belongs to "West Coast"
If I select "Edinburgh & Lothian" I would like the results from all 5 homes in that area displayed
==> Based on the screenshot you shared, how to know what option belongs to "Edinburgh & Lothian"
This simply means how to group the options by "West Coast" or "Edinburgh & Lothian"? There is no way.