Skip Navigation

[Resolved] Show Entire Taxonomy conditionally (not just terms)

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to be able to display a taxonomy or taxonomies on a single post based on the terms assigned in another taxonomy. I would also like to do something similar in Forms.

Solution: Use conditional HTML to show and hide content in a post template. Use Forms conditional groups to show and hide content in a Form.

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
https://toolset.com/documentation/user-guides/views-shortcodes/
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/
https://toolset.com/documentation/user-guides/cred-conditional-display-engine/

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by UrsulaM3313 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1099758

1) Is it possible to conditionally show a completely separate and different entire Taxonomy (Parent,Child,Grandchildren) based on checking whether a taxonomy term was checked in a different taxonomy?

2) Can you please point me to documentation where it shows how to set this up?

3) Is it possible to conditionally show more than one completely separate entire taxonomy, based on a multiple terms selected in a different taxonomy?

4) is the above possible to also do in Forms?

Thank you.

#1099759

P.S. to further clarify in my question #1: in the doc
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/
it gives an example of checking for at least one term assigned to conditionally show that taxonomy if a term *in that taxonomy* was checked.
I want to know if it's possible to conditionally show a completely different taxonomy based on whether a term was checked in a taxonomy (not show the *same* taxonomy).

#1100586

1) Is it possible to conditionally show a completely separate and different entire Taxonomy (Parent,Child,Grandchildren) based on checking whether a taxonomy term was checked in a different taxonomy?
The examples in this document are referring to using conditionals to show and hide content on the front-end of the site. You can certainly use conditional HTML to show or hide a completely separate and different taxonomy based on the term(s) selected in some other taxonomy.

2) Can you please point me to documentation where it shows how to set this up?
We have documentation for conditional HTML here:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
We have documentation for other taxonomy-related shortcodes here:
https://toolset.com/documentation/user-guides/views-shortcodes/

3) Is it possible to conditionally show more than one completely separate entire taxonomy, based on a multiple terms selected in a different taxonomy?
Yes, you can use conditional HTML to show or hide any groups of content you would normally add with shortcodes. Wrap all that content in a wpv-conditional shortcode that includes your conditional criteria. See the documentation above for conditional HTML information.

4) is the above possible to also do in Forms?
To some degree yes, but it depends on the complexity of the conditions. We have information about our conditional Form groups feature here: https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/
And more advanced information here: https://toolset.com/documentation/user-guides/cred-conditional-display-engine/

#1100687

Thank you