<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Simple Post Thumbnails + Gravity Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/simple-post-thumbnails-gravity-form</link>
		<description>Gravity Support Forums Topic: Simple Post Thumbnails + Gravity Form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:09:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/simple-post-thumbnails-gravity-form" rel="self" type="application/rss+xml" />

		<item>
			<title>alboom on "Simple Post Thumbnails + Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/simple-post-thumbnails-gravity-form#post-31240</link>
			<pubDate>Sat, 30 Jul 2011 14:01:53 +0000</pubDate>
			<dc:creator>alboom</dc:creator>
			<guid isPermaLink="false">31240@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;Here is a simple code that makes a post thumbnail (featured image in Wordpress 3.2) from first photo attached to the post.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;my_post_submission&#38;quot;, 10, 2);

function my_post_submission($entry, $form){

  # Here you should check if $form is the right form, otherwise it will work for all forms.

  $post = get_post($entry[&#38;quot;post_id&#38;quot;]);
  $arrImages =&#38;amp; get_children(&#38;#39;post_type=attachment&#38;amp;post_mime_type=image&#38;amp;post_parent=&#38;#39; . $entry[&#38;quot;post_id&#38;quot;] );
  if(is_array($arrImages)) {
    foreach ($arrImages as $attachment_id =&#38;gt; $Image) {
      set_post_thumbnail( $post, $attachment_id );
      break;
    }
  }

}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Simple Post Thumbnails + Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/simple-post-thumbnails-gravity-form#post-17941</link>
			<pubDate>Tue, 08 Feb 2011 13:28:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">17941@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This isn't currently a native feature.  It is something we plan on adding in a future release.  It is possible to do now but requires custom code and the use of available API hooks.&#60;/p&#62;
&#60;p&#62;Here is an example:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/auto-setting-the-the_post_thumbnail?replies=6#post-17879&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/auto-setting-the-the_post_thumbnail?replies=6#post-17879&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davemac on "Simple Post Thumbnails + Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/simple-post-thumbnails-gravity-form#post-17905</link>
			<pubDate>Tue, 08 Feb 2011 08:57:25 +0000</pubDate>
			<dc:creator>davemac</dc:creator>
			<guid isPermaLink="false">17905@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wondering the same thing ... anybody?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leprakhauns on "Simple Post Thumbnails + Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/simple-post-thumbnails-gravity-form#post-17063</link>
			<pubDate>Wed, 26 Jan 2011 22:58:30 +0000</pubDate>
			<dc:creator>leprakhauns</dc:creator>
			<guid isPermaLink="false">17063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there an easy way to have it upload an image and post content and that image be its post thumbnail automatically?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
