Skip Navigation

[Resolved] Conditional Display Based on Taxonomy NOT Being Empty

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.

Our next available supporter will start replying to tickets in about 4.96 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by chrisO-12 1 year, 11 months ago.

Author
Posts
#2524025

I am creating a content template that includes several custom fields and taxonomies.

I have two taxonomies that I want to use for conditional display - States and Provinces. If both of these taxonomies are not empty, then I want to conditionally display a field.

Also, I have other conditional displays that will be similarly built. For example, if the States taxonomy is not empty, show a heading and then a list of all the checked of taxonomies.

I have built this conditional using the Advanced Editor. What needs to happen here for this to work?
( NOT ( empty( '[wpv-post-taxonomy type="province" format="slug" ]') ) AND NOT ( empty( '[wpv-post-taxonomy type="state" format="slug" ]') ) )

I also tried:
NOT (( empty( '[wpv-post-taxonomy type="province" format="slug" ]') ) AND ( empty( '[wpv-post-taxonomy type="state" format="slug" ]') ) )

What is the link to your site?
hidden link

#2524035

My issue is resolved now. Thank you!