Forums › Forums › Search & Filter Pro › How to set up parent taxonomy then a child taxonomy
Tagged: child taxonomy, parent taxonomy, V3
- This topic has 11 replies, 2 voices, and was last updated 6 years, 2 months ago by Trevor.
-
Anonymous(Private) August 23, 2018 at 8:31 am #186267
Hi Guys…
I would like to do a filter and search form but struggling to get past the first hurdle….
I would like the first drop down to be a country which i have a parent taxonomy set the the next drop down to be the Region the child taxonomy… only to show the relevant child taxonomy group from the parent choosen in the prevoius drop down…
Thanks
Wayne
Trevor(Private) August 23, 2018 at 1:51 pm #186284You are currently using just one taxonomy for country and regions, but actually need two (one for each).
The reason for this is that, in general, you can use a particular Taxonomy (or Category/Tags, each Taxonomy and each Custom Field) only once in the form. As suggested above, you would need to make additional custom taxonomies. This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).
IF you need to get one filter change to when another is set with an option, on the General settings tab:
Set
Auto Count
(both settings) toON
And then in the Form UI:
In each field set
Hide Empty
toON
-
AuthorPosts