<?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: Set an uploaded image as the Featured Image?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image</link>
		<description>Gravity Support Forums Topic: Set an uploaded image as the Featured Image?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:35:53 +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/set-an-uploaded-image-as-the-featured-image" rel="self" type="application/rss+xml" />

		<item>
			<title>jcollier on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-30532</link>
			<pubDate>Wed, 20 Jul 2011 12:34:12 +0000</pubDate>
			<dc:creator>jcollier</dc:creator>
			<guid isPermaLink="false">30532@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Doesn't work with WP 3.2. Go here for the fix:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/support-post-thumbnails&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/support-post-thumbnails&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>guildmeister on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-18550</link>
			<pubDate>Mon, 14 Feb 2011 21:20:25 +0000</pubDate>
			<dc:creator>guildmeister</dc:creator>
			<guid isPermaLink="false">18550@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Kirsten Sorry for the delay in replying I've not been getting notifications of updates to the posts. Here is the code I used in a Post Fields Body widget. Under the Properties of that widget you make sure the Create Post Content Template box is checked. The first thing I have in the field that will create the post content is this:&#60;/p&#62;
&#60;p&#62;{Main Image:4:thumbnail:left}{Description:3}&#60;/p&#62;
&#60;p&#62;The numbers may be different for your form. This code will put the image as a thumbnail, left-aligned with the body text (I called my body widget Description) wrapped around it.&#60;/p&#62;
&#60;p&#62;I hope that helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kirsten on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-13050</link>
			<pubDate>Sat, 20 Nov 2010 15:39:56 +0000</pubDate>
			<dc:creator>Kirsten</dc:creator>
			<guid isPermaLink="false">13050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@ guildmeister - Can you please point me to the code that you found to add the image as a thumbnail?  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>guildmeister on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-12962</link>
			<pubDate>Fri, 19 Nov 2010 04:03:30 +0000</pubDate>
			<dc:creator>guildmeister</dc:creator>
			<guid isPermaLink="false">12962@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you both!&#60;/p&#62;
&#60;p&#62;blrfurther do you use that code in the post template?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blrfurther on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-12847</link>
			<pubDate>Wed, 17 Nov 2010 18:31:39 +0000</pubDate>
			<dc:creator>blrfurther</dc:creator>
			<guid isPermaLink="false">12847@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@guildmaster here is what I am using (please correct me if this is not the best practice)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;post_submission_handler&#38;quot;);
function post_submission_handler($entry){
    global $wpdb;

    $results = $wpdb-&#38;gt;get_results($wpdb-&#38;gt;prepare(&#38;quot;  SELECT l.*, field_number, value
                            FROM wp_rg_lead l
                            INNER JOIN wp_rg_lead_detail ld ON l.id = ld.lead_id
                            WHERE l.id=%d
                            ORDER BY  l.id, field_number&#38;quot;, $entry[&#38;quot;id&#38;quot;]));

    foreach($results as $result){
       	$post = $result-&#38;gt;post_id;
       	$images =&#38;amp; get_children( &#38;#39;post_type=attachment&#38;amp;post_mime_type=image&#38;amp;post_parent=&#38;#39;.$post );
		if ( empty($images) ) {
			// no attachments here
		} else {
			foreach ( $images as $image ) {
				$featured =&#38;amp; add_post_meta($post, &#38;#39;_thumbnail_id&#38;#39;, $image-&#38;gt;ID );
				break;
			}
		}

	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-12798</link>
			<pubDate>Wed, 17 Nov 2010 12:01:22 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">12798@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Currently there is no built in way to set the image uploaded as the feature image.  It is a feature we plan on looking into how we can implement in a future release.  It would be possible to do now but would require a customization and WordPress development knowledge to do so.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>guildmeister on "Set an uploaded image as the Featured Image?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-an-uploaded-image-as-the-featured-image#post-12787</link>
			<pubDate>Tue, 16 Nov 2010 22:00:12 +0000</pubDate>
			<dc:creator>guildmeister</dc:creator>
			<guid isPermaLink="false">12787@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to automatically set an uploaded image as the Featured Image? I found some code to place the image as a thumbnail, so that solves half my problem. But I'd like it to be the featured image as well.&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;br /&#62;
Donna
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
