Hi,
I need to conditionaly display an element in content template based on if the parent post has a field filled.
I tried
[wpv-conditional if="( '[types field='budget' item='@projet-lie.parent'][/types] ' ne '' )"]
but it doesn't seem to work.
I also tried with the double quotes
[wpv-conditional if="( '[types field="budget" item="@projet-lie.parent"][/types] ' ne '' )"]
but it still doesn't work : the content always displays even if the field budget from projet-lie parent post is empty.
Thanks.
P.S. : hidden link LINE 15

Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Hello. Thank you for contacting the Toolset support.
What if you try to use the following line of code:
[wpv-conditional if="( '[types field='budget' item='@projet-lie.parent'][/types]' ne '')"]
Does that works? if yes, the the issue was the space at after the types shortcode ends, I've removed that space.
'[types field='budget' item='@projet-lie.parent'][/types] '
My issue is resolved now. Thank you!