My site is areal estate site with properties.
All my properties have a post field named "location" in order to know that this property is next to the sea, this one in a city or this one in a mountain village.
They all have 1 taxonomy listing the available services. For example "ski renting", 'spa", "hammam", "boat renting", etc... All the services are under one of the 3 parents : "sea, mountain, city".
I have another post field which is a "select" list : sea, mountain, city.
I'm now creating my WordPress Archive page to view these properties.
I added filters to display only the properties corresponding to some criteria.
So if I choose my select list post field and I select mountain, it will display only the properties in the mountains. If I choose city, I will see only the properties in a city.
I would like to have visible only my "select list : sea, mountain, city". and display the "services" taxonomie child items corresponding to sea/city/mountain.
I was hoping doing that with "conditional output", but I can not use the value of the 1st dropdown list filter to display one or another corresponding taxonomy section to have only the services for a sea property displayed or the ones for a mountain property.
If I have understood you correctly your posts have a custom field with options of sea, mountain, or city, and you also have a taxonomy services that is hierarchical, and the top level term is also sea, mountain, or city, and under these are the services that may be available at each type of location.
You want your search form to initially show only the filter for the custom field, and then depending on what is selected, show the taxonomy filter, but only for services for the matching location.
Is that correct?
This isn't something that can be done without adding some custom code, though I can help you with that.
My first observation is that grouping the services taxonomies together in a single hierarchical taxonomy is not very helpful for this. It would be easier to have 3 separate taxonomies, sea-services, mountain-services, and city-services, add each of these taxonomies as filters, and then selectively hide/show the filters depending on what had been chosen with the custom field filter.
Thank you Nigel.
Is there then a possibility to have a multi-step filters system ?
I mean, choosing Sea, Mountain or City and then, following the choice, display a additional filter checkboxes with the sea services if you choose SEA or the Mountain services if you choose MOUNTAIN ?