Forums › Forums › Search & Filter Pro › conditionnal display or merge 2 taxonomy field
- This topic has 4 replies, 2 voices, and was last updated 10 years, 6 months ago by
Ross.
-
Anonymous(Private) November 3, 2015 at 2:28 pm #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 termsDo you have a solution please ?
thanksIgor
Ross Moderator(Private) November 6, 2015 at 3:47 pm #29075Hey 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(Private) November 6, 2015 at 3:48 pm #29076Ah 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
Ross Moderator(Private) November 6, 2015 at 5:42 pm #29088Yup, 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
-
AuthorPosts