Skip Navigation

[Gelöst] Conditional "if at least one term is set"

This support ticket is created vor 2 Jahre, 7 Monate. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by romanB-3 vor 2 Jahre, 7 Monate.

Assisted by: Minesh.

Author
Artikel
#2158519

Hi,
I'd need to test if a single post has "any" term.
And I only found option to check if current post has or hasn't a specific term.
Thanks.

#2159217

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know how you are adding conditional - using block or [wpv-conditional] statement.

If you are using [wpv-conditional] statement - then to know if any term is assigned that mean at least one term is assigned or not.

For example:

[wpv-conditional if="('[wpv-post-taxonomy type='foreign-language' format='slug' ]' ne '' )"]
<strong>Foreign languages: </strong>[wpv-post-taxonomy type="foreign-language"]
[/wpv-conditional]

More info:
https://toolset.com/documentation/legacy-features/views-plugin/displaying-taxonomies-conditionally/#one

#2159497

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.