Forums Forums Search & Filter Pro How to set up parent taxonomy then a child taxonomy

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #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
    #186284

    You 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) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    Anonymous
    #186354
    This reply has been marked as private.
    Trevor
    #186360
    This reply has been marked as private.
    Anonymous
    #186366
    This reply has been marked as private.
    Anonymous
    #186370
    This reply has been marked as private.
    Trevor
    #186445
    This reply has been marked as private.
    Anonymous
    #186461
    This reply has been marked as private.
    Trevor
    #186472

    In the filters in the form, you will only see options if they have already been used on existing posts. If they are just options (not yet used) they will not appear.

    Anonymous
    #186474
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 12 total)