I have this code and it's not working. Any idea
[wpv-conditional if="( $(facebook).item(@organisatie.parent) ne '' )"]do something[/wpv-conditional]
I also tried with NOT(EMPTY... but also not working
Can you pleas help
Thanks!

Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
What if you try to use the following conditional statement:
[wpv-conditional if="( '[types field='facebook' item='organisatie.parent']' ne '' )"]
do something
[/wpv-conditional]
[/php]
Does that helps?
It's not working
I don't use it in php but in the editor of WordPress
So maybe that's the problem
When I use your code with or without [/php] I can't save it anymore.
Can you please send me problem URL and where exactly you want to display that conditional content.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I checked but somehow the admin access details you shared is not working at this end.
Can you please send me working admin access details.
I have set the next reply to private which means only you and I have access to it.
Can you please check now: lien caché
I've created the following conten tempalte and added the following code:
=> lien caché
<p style="font-weight: 400;">
[wpv-conditional if="( '[types field='facebook' item='@organisatie.parent'][/types]' ne '' )"]
<em><u>lien caché</u></em>
[/wpv-conditional]
[wpv-conditional if="( '[types field='twitter' item='@organisatie.parent'][/types]' ne '' )"]<em><u>lien caché</u></em>
[/wpv-conditional]
[wpv-conditional if="( '[types field='instagram' item='@organisatie.parent'][/types]' ne '' )"]<em><u>lien caché</u></em>
[/wpv-conditional]
</p>
Then with your content template where you actually wanted to display the icons:
=> lien caché
I've removed the existing conditoinal code and instead added the above content template using the shortcode: [wpv-post-body view_template="ct-for-conditional-icons"]
More info:
=> https://toolset.com/documentation/legacy-features/views-plugin/checking-fields-and-other-elements-for-emptynon-empty-values/
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153372
Thank you very much. It works