<?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: User submitted form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form</link>
		<description>Gravity Support Forums Topic: User submitted form</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:20:21 +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/user-submitted-form" rel="self" type="application/rss+xml" />

		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-2004</link>
			<pubDate>Sun, 06 Dec 2009 15:22:06 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">2004@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;One is post Image and one is file upload.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-2002</link>
			<pubDate>Sun, 06 Dec 2009 15:12:00 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">2002@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;mofx,&#60;br /&#62;
Are your fields  &#34;Post Image&#34; fields, or &#34;File upload&#34; fields? My code snippettttt assumes you are using &#34;File upload&#34; fields.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1997</link>
			<pubDate>Sun, 06 Dec 2009 12:59:59 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">1997@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Alex Thanks for all your help man we are so close, I'm giddy with excitement.  I'm still running into a couple problems, hopefully you can help me with, then I 'll be out of your hair.&#60;br /&#62;
On the image upload. After the form is submitted and I'm in the WP post, the image shows as a broken icon. If I click on the icon and go into edit image in WP, then click over to the advanced settings tab. This is what is being added to the end of the source link &#124;:&#124;1050771242840315&#124;:&#124;&#124;:&#124; if I remove this the image shows up just fine. Any Ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1988</link>
			<pubDate>Sat, 05 Dec 2009 23:33:11 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1988@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;mofx,&#60;br /&#62;
You will have to change the markup to what you need, but I think the following code will get you started. Place it in your theme's funciton.php file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($entry, $form){

    //getting post
    $post = get_post($entry[&#38;quot;post_id&#38;quot;]);

    //changing post content
    $post-&#38;gt;post_content = &#38;quot;Blender Version:&#38;quot; . $entry[7] . &#38;quot;&#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[8] . &#38;quot;&#38;#39;&#38;gt; &#38;lt;br/&#38;gt; &#38;lt;br/&#38;gt; &#38;quot; . $entry[13] . &#38;quot; &#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[5] . &#38;quot;&#38;#39;&#38;gt;&#38;quot;;

    //updating post
    wp_update_post($post);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The $entry[x] calls are the ones getting your field values. You can read any field from the form this way. To get a field's id, just look at the input name. It will look something like name=&#34;input_5&#34;. In this case the id is 5.&#60;/p&#62;
&#60;p&#62;Good Luck.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1970</link>
			<pubDate>Fri, 04 Dec 2009 12:32:31 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">1970@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That probably would make sense where's the form:&#60;br /&#62;
&#60;a href=&#34;http://www.blendswap.com/upload-models/&#34; rel=&#34;nofollow&#34;&#62;http://www.blendswap.com/upload-models/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1966</link>
			<pubDate>Fri, 04 Dec 2009 11:17:23 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1966@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;mofx,&#60;br /&#62;
I think it would be helpful if you add a link to your form, so that I can see what kind of information you want to add to the post.&#60;br /&#62;
As far as adding, the labels, you will have to do them manually in the PHP code.&#60;br /&#62;
i.e.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$post_data[&#38;quot;post_content&#38;quot;] = &#38;quot;Model Description:&#38;lt;/br&#38;gt;&#38;quot; . $_POST[&#38;quot;input_XXX&#38;quot;] . &#38;quot;&#38;lt;br /&#38;gt;Another Label: &#38;lt;br /&#38;gt;&#38;quot; . $_POST[&#38;quot;input_YYY&#38;quot;];&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1960</link>
			<pubDate>Thu, 03 Dec 2009 22:42:22 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">1960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Alex thanks man, now how would I add the label name to the label input?&#60;br /&#62;
So it would look like&#60;/p&#62;
&#60;p&#62;Model Description:&#60;br /&#62;
Blah Blah Blah.&#60;/p&#62;
&#60;p&#62;Also is there a way to format the stuff your pulling from the form.&#60;br /&#62;
Would love if my pages would look like this when there done.&#60;br /&#62;
&#60;a href=&#34;http://www.blendswap.com/scenes/5-light-setup/&#34; rel=&#34;nofollow&#34;&#62;http://www.blendswap.com/scenes/5-light-setup/&#60;/a&#62;&#60;br /&#62;
I also can't get the images to load into my posts, I tried to do what Kevin said here&#60;br /&#62;
&#60;a href=&#34;http://forum.gravityhelp.com/topic/using-form-to-submit-blog-data&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/using-form-to-submit-blog-data&#60;/a&#62;&#60;br /&#62;
but it wouldn't work for me any thoughts? Thanks guys, great product.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1933</link>
			<pubDate>Wed, 02 Dec 2009 15:17:07 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1933@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The idea is to manually create the post content from different form fields using a hook and PHP code. Following is something to get you started. Copy it to your theme's function.php and replace XXX, YYY and ZZZ with the fields you would like the post content to be populated with.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;create_post_content&#38;quot;, 10, 2);
function create_post_content($post_data, $form){
   //Replace XXX, YYY and ZZZ with your actual  input name.
  //View the HTML source to find it (i.e name=&#38;quot;input_3&#38;quot;).
    $post_data[&#38;quot;post_content&#38;quot;] = $_POST[&#38;quot;input_XXX&#38;quot;] . &#38;quot;&#38;lt;br /&#38;gt;&#38;quot; . $_POST[&#38;quot;input_YYY&#38;quot;] . &#38;quot;&#38;lt;br /&#38;gt;&#38;quot; . $_POST[&#38;quot;input_ZZZ&#38;quot;];
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1927</link>
			<pubDate>Wed, 02 Dec 2009 11:06:34 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">1927@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Purchased GF, trying to work through making the from now. Alex if you have any advice that would be sweet, considering I'm kind of code illiterate. I got the standard form laid out, got it somewhat working, pretty much the post title, post description, and category work. That's about it. Any help would be greatly appreciated. Kevin I also tried to add the gallery PHP into my single.php page, and could get it to work, will it work with only one image? Thanks again guys.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mofx on "User submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-submitted-form#post-1920</link>
			<pubDate>Tue, 01 Dec 2009 23:11:52 +0000</pubDate>
			<dc:creator>mofx</dc:creator>
			<guid isPermaLink="false">1920@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Cool thanks guys, I'm sure I will need some help setting it up. But at least I know that GF will do it. Will go purchase it now. Thanks again.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
