I see the post which was created, but I did not see the form. I see the problem. Right now, the content template will have spaces for all the images, and when there is no image uploaded, the space is still taken up in the post as if an image were uploaded.
You won't be able to use the content template like this, if you want to avoid outputting empty image. You might want to use the content template for everything except the images, then loop through the images in a function using the gform_after_submission hook. If the image upload is empty, then don't output the image tag.
http://www.gravityhelp.com/documentation/page/Gform_after_submission
You could also add a [gallery] shortcode, which will output all attached images based on however you have configured the shortcode, with no blank images being output.
Posted 11 years ago on Saturday December 22, 2012 |
Permalink