Not a problem 🙂 Take your time and have a great weekend.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Charlene
I took a closer look and see that the problem is you are trying to use conditional shortcodes where the field value being tested comes from a many-to-many relationship, which the documentation describes is not expected to work: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/conditional-output-based-on-post-relationships/
Comparing to the “Many” side will produce no results because Toolset cannot know which of the many items you want to compare to.
So you cannot insert the condition and specify the relationship, the GUI doesn't let you.
But... I managed to trick it into working by using a different format for testing the Types field. Normally this is inserted as "$(wpcf-my-field)", which will evaluate my-field for the current post.
But you can also provide a full Types shortcode inside single quotes, like this:
if="( '[types field='harmfull_duration' format='FIELD_VALUE' item='@skill-harmfull-effect.intermediary'][/types]' ne '' "
So it is testing the output of the shortcode itself.
Seems to work, if you want to check.
Thank you Nigel! That works indeed perfectly 🙂
Well that solves all my Questions for now, just wanted to say I'm very grateful you've been so patient with me and helped me answer all my questions.
Perhaps with your new discovery you can even update the documentation so others might use it as well 🙂
Thanks for everything!