The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created Il y a 8 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I have been struggling with this for some time. Trying to display a profile image and if no image display some text. I have it displaying the image properly but when i use the if to display something else if it is empty i don't get what is expected.
For the case of this example I have the following.
If a profile image exists type "happy" if it does not type "grumpy"
Here is the code as I understand it from the documentation:
wpcf-user_profile_image is the custom field that i created. I have added the wpcf- as outlined because this is a custom value created by types.
When i use my custom value on the page the image value works fine
[types usermeta="user_profile_image" size="thumbnail" align="none" resize="proportional"][/types]
When i try to use it in an if statement it doesn't seem to work?