PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Photo Caption & Insert in post

  1. Hello,

    I have a user submit form, working nicely. There's however 2 issues with photos uploaded, may I ask for help please?

    1. CAPTION: The forms offers two photo upload fields. Both have the caption field checked. Both come into WP. But only one is sending the caption to "caption" the other is sending it to "alternate text" (again I checked and both have the caption" selected. How can I fix this?

    (found this but not solution: http://www.gravityhelp.com/forums/topic/image-caption-appearing-in-alt-field-when-image-is-loaded)

    2. PHOTO POST INSERT: When view -the post- in WP editor both photos show in the post gallery(2), but only one is posted inside the post. How can I have both (if not more) photos already inside the post ?

    thank you, I hope I was able to explain

    Any thoughts?

    Posted 12 years ago on Monday November 7, 2011 | Permalink
  2. @espimedia, I would be happy to look at your form. Please export the form and email it to me at chris@rocketgenius.com

    Posted 12 years ago on Wednesday November 9, 2011 | Permalink
  3. @espimedia, I changed you content template to this:

    [php]
    {Post Image:13:medium:right}{Post Body:3}
    {Upload Image 2:16:medium:left}

    I inserted the second image "Upload Image" into the content template, left aligned. That got the image online at the end of the post.

    Regarding the caption, this is largely dependent upon your theme. Here is a screenshot of where Gravity Forms captured the data for me: http://min.us/l0XyntWUEIVkU

    The data was stored in the Caption field with each image. It's up to the theme how you want that information displayed. Sometimes the theme uses caption as the alt (which is the case with the default Twenty Eleven theme.) You can experiment with putting the form data into different fields ( title, caption, description) but the caption is normally used as the alt, as it is in my theme.

    My theme does not appear to display that caption under the photo in any way. If you want to do that, there might be more work involved, in your template.

    You can see a post I created with your form, here:
    http://gravity.chrishajer.com/2011/11/10/tom-bradley-takes-over-respectfully-fired-joe-paterno/

    If you view the source, you will see that alt tag for the image is the text I typed in as the caption.

    The YouTube URL is not used by my theme. Maybe it's in use and works in your theme.

    Posted 12 years ago on Thursday November 10, 2011 | Permalink
  4. @espimedia, if you edit your form, find the post body field, and insert this in into the content template:

    [php]
    {Post Image:13:medium:right}{Post Body:3}
    {Upload Image 2:16:medium:left}

    Here's a screenshot http://minus.com/lRsIezzjr2RRG
    The only change I made to your existing content template is adding the last line. You had the first image, floated right, and then the post body. This will add the second image to the post, after the content, floated left. That will put both images into your post. You might have to adjust the positioning and size of the second image to your liking.

    Posted 12 years ago on Saturday November 12, 2011 | Permalink