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: