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 6 years, 10 months ago. 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 am trying to: create an image repeating field that only shows on frontend if there's an image attached. But if I delete images attached to the post with that image field, there's always a blank field
I visited this URL: local development, not yet online. You can see the template part code to show the image data on frontend here: hidden link
I expected to see: image data should only get on frontend if there's an image attached
Instead, I got: image data on frontend even when there's no image attached
In fact, the link didn't help. It only shows shortcodes, I'm using php to show my data in frontend.
You can see here hidden link that I used common conditional to assess for empty field. The problem is the field is not empty, although I've deleted all the images. Therefore, no image is shown but the code that wraps the image is.
I've seen several entries in the forum about this issue, and no definitive answer on how to solve it.
Can you point me to a code solution instead of shortcodes?