Skip Navigation

[Resolved] conditional taxonomy not working

This support ticket is created 5 years, 10 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.

This topic contains 2 replies, has 2 voices.

Last updated by meirk 5 years, 10 months ago.

Author
Posts
#1201809

I am trying to:
display a word according to conditional toolset
i tried;
[wpv-conditional if="( '[wpv-post-taxonomy type='tipo-de-material' format="name"]' eq 'video' )"]***video***[/wpv-conditional]

while 'tipo-de-material' is a custom types category
if i display [wpv-post-taxonomy type='tipo-de-material' format="name"] it shows me "video" in the right way but the conditional always return false...

#1202041

Hi,

Can you try this format:
[wpv-conditional if="( CONTAINS(#(tipo-de-material),'video') )"]Video[/wpv-conditional]

#1202063

My issue is resolved now. Thank you!
It was a issue with the uppercase ...
thanks anyway to show me the "contains" condition function.