• giuseppedichiara

    (@giuseppedichiara)


    Is there any way to make child taxonomies filterable in a second input? It may sound like a stupid question but in my car DB I have the following hierarchy. Car brand > Car model e.g. (Mercedes > Class A)

    Is there a way to filter child taxonomies in a different field? And then make the second input dependent on the first (but I already know this can be done)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hi @giuseppedichiara

    Such feature is provided in the plugin and it is called “Parent filter”. But it expects that you use different entities (for example different taxonomies – Brand and Model) for your both related filters – Master and Slave.

    In your case you use the same taxonomy Category for both – Brand and?Model and it is not perfect solution from the app design point of view. And of course you can not use the “Parent filter” feature.

    If it is possible you may install CPT UI plugin and create separate taxonomy Model and attach models to your cars. In this case it will work as you need.

    As another option available in the PRO version, you can create two Filter Sets and create filter?by Category for both these Sets and make “Empty terms -> Always hide” for the second filter. In this case the second field will have only car models related with selected in the first filter.

    But the way with custom taonomy better in any way and also it is good solution for the future site development.

    Thread Starter giuseppedichiara

    (@giuseppedichiara)

    the problem arises precisely because I wanted to avoid using a “parent” taxonomy for the templates category. the reason is for a matter of data organization!

    In fact, the alternative of using two filters, with the PRO version, isn’t bad, but I’m not sure of the result. Thanks for the advice anyway! Always polite, prompt and helpful.In fact, the alternative of using two filters, with the PRO version, isn’t bad, but I’m not sure of the result. Thanks for the advice anyway! Always polite, prompt and helpful.

    Plugin Author stepasyuk

    (@stepasyuk)

    @giuseppedichiara

    Thank you for your warm words about the plugin and support. The best place to write them is here – https://www.ads-software.com/support/plugin/filter-everything/reviews/ ??

    Thread Starter giuseppedichiara

    (@giuseppedichiara)

    @stepasyuk

    I just tested what you recommended and is perfect except for one thing: how can I make sure that in the first field are dynamically excluded (because we periodically change) the child taxonomies without inserting them individually? Is there a hook or something I can modify for that purpose?

    In this way I would only display the brands on the first input, I would limit the typing on the second input until you select the brand and then this dynamically returns the models belonging only to the hierarchically superior taxonomy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filtering child taxonomies in another input’ is closed to new replies.