This support ticket is created hace 2 años. 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.
I'm trying to using conditional output to show or hide some information based on two different user fields from the post's author. One of them works, the other doesn't.
The one that works is:
[wpv-conditional if="( [types usermeta='public-phone-user' user_is_author='true'][/types] ne '' )"] - the content after that and before [/wpv-conditional] shows if there's something in the public-phone-user field, and doesn't show if it's empty.
However, the very similar conditional:
[wpv-conditional if=" ( [types usermeta='public-email-user' user_is_author='true' output='raw'][/types] ne '' )"] doesn't work - the content after it and before [/wpv-conditional] doesn't show whether or not there's anything in the public-email-user field.
Debugging that conditional shows the following when there is info in the field (in this case an actual email address which I've replaced with REDACTED:
Hello. Thank you for contacting the Toolset support.
Can you please try to use the following code and try to resolve your issue:
[wpv-conditional if=" ( '[types usermeta='public-email-user' user_is_author='true' output='raw'][/types]' ne '' )"]
doesn't work - the content after it and before
[/wpv-conditional]
The issue seems that you did not wrap the Types shortcode with single quotes as shown below: