conditionnal display or merge 2 taxonomy field

Forums › Forums › Search & Filter Pro › conditionnal display or merge 2 taxonomy field

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #28843

    Hello,

    I am a beginner who is trying to build a blog/website for his girlfriend.
    here is the link of the work in progress : http://lespetitsmotsdesaefiel.com/test-filtre/

    I am using the shortcode method to display my customposttype result on a page.

    I have 3 Taxonomy fields : ” Format ” , ” Genre Roman ” and ” “Genre Bande dessinée ”

    what i want to achieve >

    Option 1 :
    When i select the term ” Roman ” of my Taxonomy field “Format”, i want to hide the Taxonomy field ” genre bande dessinée ”
    and When i select the term ” Bande dessinée ” of my Taxonomy field “Format”, i want to hide the Taxonomy field ” genre roman ”

    Option 2 :

    Merge the taxonomy field ” Genre Roman” and the Taxonomy field ” Genre Bande dessinée ” in a new field named ” Genre ”
    Then hide the empty terms

    Do you have a solution please ?
    thanks

    Igor

    Ross Moderator
    #29075

    Hey Igor

    I think you just need to enable “Auto Count”? This can be found in the general tab.

    Then in your fields, ensure you tick “hide empty”.

    Thanks

    Ross Moderator
    #29076

    Ah I see, I just took a look at the link.

    Anyway, I think if you use autocount, and merge the two taxonomies then you will get an effect similar to what you want.

    Thjanks

    Anonymous
    #29087

    Hello ,

    So there is no way i can put 2 taxonomies on 1 field with the plug-in ?

    If not, i will merge my 2 taxonomies into one taxonomy.

    thank you for your answer !
    Igor

    Ross Moderator
    #29088

    Yup, or you you could show/hide your fields with JavaScript when the results are loaded:

    Check the first question for some JavaScript events which might help you
    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Thanks

Viewing 5 posts – 1 through 5 (of 5 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.