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.

Uploading and DIsplaying Images with Gravity Forms

  1. Ben
    Member

    Hello,

    I'm currently trying to allow users to upload images with gravity forms. I put the upload image post field into the form, but I'm not sure how I'm supposed to call the uploaded image in the loop to have it display in the post? Any ideas?

    Thanks,
    Ben

    Posted 12 years ago on Monday November 28, 2011 | Permalink
  2. Ben,

    Be sure you include a post body field. Save your form.

    Now go back and edit your form. Edit the post body field. There will be a check box that says "Create content template". Check that. Then you will see something that looks like this:
    http://minus.com/lRsIezzjr2RRG

    You can insert the data submitted to your form by using the drop down that says "Insert Merge Tag". You will be able to put all the submitted fields into your post like this. You might have to add some HTML to make it lay out the way you like, but I think if you start with this you will quickly figure it out. See if that helps do what you are looking for.

    Posted 12 years ago on Monday November 28, 2011 | Permalink
  3. Ben
    Member

    Rob, thanks for the reply.

    I've got that up and working now. One problem that I've run into is that it works all fine and dandy when I'm making new posts. But if I create a post, then decide to change the merge tags, it doesn't seem to automatically update the layout of the old posts? Is there an easy way for me to have the old post update itself with the new merge tag layout? Or is there a way for me to call the merge tag within my template file?

    -Ben

    Posted 12 years ago on Tuesday November 29, 2011 | Permalink
  4. Ben
    Member

    Another question -is there a way to specify the exact size of the image that I want to be displayed? RIght now there are only a few options - thumbnails, small, medium, and large. Am I able to modify one of these so that medium corresponds to 300x400 px image?

    -Ben

    Posted 12 years ago on Tuesday November 29, 2011 | Permalink
  5. Ben, unfortunately there is no master reset for altering existing posts if you update the merge tags, you'd just need to go back and change them one by one.

    For your second question, those values are corresponding to the WP Media Settings, which you should be able to change via your Admin.

    Posted 12 years ago on Thursday December 1, 2011 | Permalink
  6. I've used this plugin in the past to go back and regenerate existing thumbnails after making a change like this in your media settings:

    http://wordpress.org/extend/plugins/regenerate-thumbnails/

    If you are not going to update the posts and the merge tags, where you used "medium" then this plugin is probably all you need.

    However, you can define new thumbnail sizes, if you're not happy with the ones you have there now. Let us know if you need something like that as well. The WordPress function is add_image_size. There are a couple steps to it, if you choose to go in that direction.

    Posted 12 years ago on Friday December 2, 2011 | Permalink