This support ticket is created Il y a 5 années et 11 mois. 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 have tour operators that either have a twitter handle, a facebook ID or both. Here is my code:
[wpv-conditional if="( $(wpcf-twitter-handle) eq '' )" evaluate="false"]<img class="alignleft" src="hidden link field='twitter-handle' output='raw'][/types]/profile_image?size=bigger" />[/wpv-conditional]
[wpv-conditional if="( $(wpcf-facebook-id) ne '' ) OR ( $(wpcf-twitter-handle) ne '0' )" ]<img class="alignleft" src="hidden link field='facebook-id' output='raw'][/types]/picture?type=normal" />[/wpv-conditional]
This link, hidden link, only has a twitter handle, this one only has a fb ID, hidden link this one has both, hidden link. I need to show either one if it's available but hide the blank image placeholder if not as well as if a company has both then use the fb ID.
I can't seem to get the logic right.
Thanks for your help!
Yes, the code I had worked, but now if a company has both twitter and facebook, it shows both: hidden link
I only need it to show one. How can I do that?
Thanks!
Well - if company have both twitter and facebook - which Id you want to show?
Actually - what is your requirement?
- if both twitter and facebook available - show only one ID - which?
- if only twitter available - do we need to show it?
- If only facebook available - do we need to show it?