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.

image path gform_after_submission

  1. Hey, I'm using this hook: http://pastie.org/4927121 to fill a custom field with the submitted image URL. Works fine, only problem is it is pointing to

    /wp-content/uploads/gravity_forms/20-7eea39d8cf48c3214695627b02aaaa71/2012/10/

    instead of the required

    /wp-content/uploads/2012/10/

    Any one knows how I can fix this? Thanks!

    Posted 12 years ago on Sunday October 7, 2012 | Permalink
  2. You probably want to grab the URL of the image attached to the post (the one in the media gallery) rather than the one in the Gravity Forms entry. Try this variation instead: http://pastebin.com/ER8rwkAz

    Let us know if that does what you need it to. That will grab the first image attached to the post.

    Posted 12 years ago on Monday October 8, 2012 | Permalink