<?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: File Location</title>
		<link>https://legacy.forums.gravityhelp.com/topic/file-location</link>
		<description>Gravity Support Forums Topic: File Location</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 12:43:15 +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/file-location" rel="self" type="application/rss+xml" />

		<item>
			<title>dreizle on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-37280</link>
			<pubDate>Thu, 06 Oct 2011 20:33:22 +0000</pubDate>
			<dc:creator>dreizle</dc:creator>
			<guid isPermaLink="false">37280@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;URmedia Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sbyrakis on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-21736</link>
			<pubDate>Mon, 28 Mar 2011 08:22:31 +0000</pubDate>
			<dc:creator>Sbyrakis</dc:creator>
			<guid isPermaLink="false">21736@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you URmedia, you just saved days of my life!!!&#60;br /&#62;
:)&#60;br /&#62;
Stelios
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vmstudio on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-15935</link>
			<pubDate>Tue, 11 Jan 2011 00:41:02 +0000</pubDate>
			<dc:creator>vmstudio</dc:creator>
			<guid isPermaLink="false">15935@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;gday URmedia, can I be so vain as to ask you where you placed the posted code above please?  in which file?&#60;/p&#62;
&#60;p&#62;thanking you in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>urmedia on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13229</link>
			<pubDate>Tue, 23 Nov 2010 18:11:16 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13229@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;as promised - code from Smashing WordPress, Beyond the Blog by Thord Daniel Hedengren&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;

&#38;lt;!-- Thumbnail with description --&#38;gt;
			&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot; &#38;lt;?php post_class(&#38;#39;gallerylisting&#38;#39;); ?&#38;gt;&#38;gt;
			&#38;lt;?php
				$args = array(
					&#38;#39;numberposts&#38;#39; =&#38;gt; 1, //the amount of images to retrieve
				    &#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;, //defined post type
				    &#38;#39;status&#38;#39; =&#38;gt; &#38;#39;publish&#38;#39;, //the status of the post (draft, published, etc)
				    &#38;#39;post_mime_type&#38;#39; =&#38;gt; &#38;#39;image&#38;#39;, //e.g. image, video, video/mp4
				    &#38;#39;post_parent&#38;#39; =&#38;gt; $post-&#38;gt;ID //the ID of the post we want to use
				);
				$images = &#38;amp;get_children($args); //post is the parent, and attachments are children of parent.  Get the children
				foreach ( (array) $images as $attachment_id =&#38;gt; $attachment ) { //loop through the post attachments

				?&#38;gt;
					&#38;lt;div class=&#38;quot;gallerylisting-thumb&#38;quot;&#38;gt;
						&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;
							&#38;lt;?php
							//we create the image as a link to the post with the &#38;lt;a&#38;gt; tag above
							 echo wp_get_attachment_image($attachment_id, &#38;#39;thumbnail&#38;#39;, &#38;#39;&#38;#39;);
							 //and output the resulting image.  &#38;#39;thumbnail&#38;#39; can be replaced with
							 //thumbnail, medium, large or full for image size
							?&#38;gt;
						&#38;lt;/a&#38;gt;
					&#38;lt;/div&#38;gt;
					&#38;lt;div class=&#38;quot;gallerylisting-desc&#38;quot;&#38;gt;
						&#38;lt;h2&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
						&#38;lt;?php
						//above we link the title of the post as clickable
						//and follow it up with post content, such as the excerpt
						the_excerpt();
						//any post custom fields, meta, and anything else can be added here as well
						?&#38;gt;
					&#38;lt;/div&#38;gt;
			&#38;lt;?php } ?&#38;gt;
			&#38;lt;/div&#38;gt;
			&#38;lt;!-- /ends --&#38;gt;

&#38;lt;?php endwhile; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>urmedia on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13227</link>
			<pubDate>Tue, 23 Nov 2010 17:16:56 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13227@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hmm.  So, in a nutshell, I can't do it using really simple and predefined wordpress functions but have to get my hands dirty and write some actual code.&#60;/p&#62;
&#60;p&#62;No reason to get your back up against the wall either, mate.  I know dealing with people can be irritating sometimes, but unlike talking in person, it's much harder to hide that irritation in writing.&#60;/p&#62;
&#60;p&#62;As I am certain I am not the only one with this question or approach, I will write up some code and test it - then I will post it up here for others to copy&#38;amp;paste.&#60;/p&#62;
&#60;p&#62;For reference, the base code will be written to take a single image (thumbnail) uploaded via GF and displayed somewhere in the LOOP.  I'll be sure to comment nicely the code so a new programmer can understand it as much as the old.&#60;/p&#62;
&#60;p&#62;As I don't -really- get code based answers from ya, Carl, I obviously need to write my own - but I do want to save anyone else the trouble.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13225</link>
			<pubDate>Tue, 23 Nov 2010 17:06:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13225@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My response was not a copy-n-paste from other posts.  It was a direct response to your request above.&#60;/p&#62;
&#60;p&#62;Here is how you can see if the post images are being saved.&#60;/p&#62;
&#60;p&#62;Submit your form with some images using the Post Image fields.  Then go to Posts, Edit the post that was just created and in the Insert/Upload toolbar of the post editor click on the Image icon.  Look at what is in the Gallery for that post.  It should be the images that were uploaded.&#60;/p&#62;
&#60;p&#62;The post thumbnail you are referring to is the feature image/post thumbnail functionality added in WordPress 2.9 and enhanced in WordPress 3.0.  This is a different feature than the Gallery and you have to set which image is the post thumbnail in the post editor.  It doesn't automatically do this for you because it doesn't know which of the images uploaded should be used for the post thumbnail.&#60;/p&#62;
&#60;p&#62;Gravity Forms doesn't currently integrate with the featured image/post thumbnail functionality which is not the same as the post gallery/media library which Gravity Forms does add images to.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>urmedia on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13224</link>
			<pubDate>Tue, 23 Nov 2010 16:59:03 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13224@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;if that's the case then, logically, &#38;lt;?php the_post_thumbnail(); ?&#38;gt;  should work without issue.&#60;/p&#62;
&#60;p&#62;I know your post is basically a copy&#38;amp;paste from similar questions, but perhaps wordpress 3 is causing issue?&#60;/p&#62;
&#60;p&#62;I can hand code a post and uplaod an image (not display it), save the post and run my basic script:&#60;/p&#62;
&#60;p&#62;&#38;lt;script src='http://pastie.org/1321067.js'&#38;gt;&#38;lt;/script&#38;gt;&#60;/p&#62;
&#60;p&#62;If what you say is true, then when a form is submitted with Image upload in it it should register in the gallery and be able to be called with the above code.  It currently does not do this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13189</link>
			<pubDate>Tue, 23 Nov 2010 12:32:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13189@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There are 2 different ways to upload images via a form in Gravity Forms.  One is designed for images for forms that create a post and the other is a generic upload field.&#60;/p&#62;
&#60;p&#62;The Post Image field uploads files directly to your Media Library.  They get stored like any other image in your Media Library with multiple sizes created.&#60;/p&#62;
&#60;p&#62;The File Upload field does not go to your Media Library.  They are stored in a gravity_forms upload folder in your wp-content/uploads folder.&#60;/p&#62;
&#60;p&#62;If you are creating a post and want users to upload images then you should be using the Post Image field, not the File Upload field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>urmedia on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13172</link>
			<pubDate>Tue, 23 Nov 2010 04:25:32 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13172@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I need to be more specific:&#60;/p&#62;
&#60;p&#62;Currently it appears GF bypasses WordPress upload functions for images.  By default WP uploads images in 4 variations (thumb, medium, large, original) and the root path is wp-content/uploads/&#60;/p&#62;
&#60;p&#62;GF is affected strangely and has the following root path when &#34;Organize my uploads into month- and year-based folders&#34; is checked:&#60;/p&#62;
&#60;p&#62;wp-content/uploads/gravity_forms/2/2010/11&#60;/p&#62;
&#60;p&#62;seems really extreme to me.  I believe it maybe this that causes  the_post_thumbnail() function not to work as expected.  How can I get it to register the images by post within the loop?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>urmedia on "File Location"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-location#post-13166</link>
			<pubDate>Tue, 23 Nov 2010 01:01:08 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13166@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just a quick question:&#60;/p&#62;
&#60;p&#62;upload file or upload image -&#38;gt; where does it get saved to via location and how does it get saved?&#60;/p&#62;
&#60;p&#62;More specifically, if a post is made and image uploaded, does it get set as a default featured image in the post, or just uploads to location?&#60;/p&#62;
&#60;p&#62;I'm using it in my LOOP like so:&#60;/p&#62;
&#60;p&#62;&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#38;lt;?php the_title();?&#38;gt;&#34;&#38;gt;&#38;lt;?php the_post_thumbnail(); ?&#38;gt;&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
