<?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: Where does the Gravity Form information go after it is created?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created</link>
		<description>Gravity Support Forums Topic: Where does the Gravity Form information go after it is created?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:21:14 +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/where-does-the-gravity-form-information-go-after-it-is-created" rel="self" type="application/rss+xml" />

		<item>
			<title>JoeYoung on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-151557</link>
			<pubDate>Thu, 21 Feb 2013 10:07:27 +0000</pubDate>
			<dc:creator>JoeYoung</dc:creator>
			<guid isPermaLink="false">151557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
Yes, I can see some extra html is required which I can do. Here is the problem I am having right now. I have no idea how to do the code as you have explained above. I partly understand some things but not enough to write the actual code to paste into the functions.php file. &#60;/p&#62;
&#60;p&#62;If there is some basic training Gravity offers that can enlighten me, sure, I am up for it. Otherwise, I will need you to completely write this task for me. So sorry, I really tried to wrap my mind around it but I can see the foundation of how it all works is not in me yet. I broke the site a couple times trying, lol. It is okay now I was able to access ftp and remove what I wrote and fix it.&#60;/p&#62;
&#60;p&#62;Let me know what to do next Chris. I really need to get this project done for the client. I am willing, if it is possible, to learn this. But, if it is not then I will need someone at Gravity, as your genius self, to do it for me.&#60;/p&#62;
&#60;p&#62;Thanks for all the help!&#60;br /&#62;
Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-148232</link>
			<pubDate>Sun, 17 Feb 2013 02:40:08 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you used a Post Image field for the image upload, it should go to the media library, so that's correct.  The PDF upload should go where all files uploaded with Gravity Forms go first: wp-content/uploads/gravity_forms/FORM_ID-randomstring/ (where the folder is a combination of the form ID first and then a hyphen and a random string.)&#60;/p&#62;
&#60;p&#62;If those made it to the correct locations, then you just need to add some HTML to your content template.  If the information is available in the entry because the visitor entered it, then you can use it in your post.  For a file (which you wlll link to) and an image (which you need to embed with an image tag) there is a little more HTML required that just displaying the text.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoeYoung on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-146773</link>
			<pubDate>Wed, 13 Feb 2013 22:29:11 +0000</pubDate>
			<dc:creator>JoeYoung</dc:creator>
			<guid isPermaLink="false">146773@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
The form did create a post, yes. I added 2 fields on the form one for image upload and one for the book upload. The book is the pdf document. The problem was when I submitted a test form to see if all worked ok it never added the image and book to the post. The image went to the Media library and I can't see where the book went.&#60;/p&#62;
&#60;p&#62;My goal is to have the form do what I did in the widget on the sidebar of the sight. See &#60;a href=&#34;http://www.john316marketingnetwork.com&#34; rel=&#34;nofollow&#34;&#62;http://www.john316marketingnetwork.com&#60;/a&#62; You will see a few books under Free Christian eBooks! I used a widget with simple html code which you know and understand. I need the gravity form to populate a page just like the widget here.&#60;/p&#62;
&#60;p&#62;The thing is I need the landing page for the form to be the same for all who will be uploading their books.&#60;/p&#62;
&#60;p&#62;thanks again, and yes, I think some of this is sinking in. I am just wanting to make sure I communicate the idea correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-146578</link>
			<pubDate>Wed, 13 Feb 2013 11:26:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146578@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure what you mean about a PDF.  Gravity Forms does not generate PDFs.  Maybe you are using an add-on or plugin for that?&#60;/p&#62;
&#60;p&#62;What happened when you used your code?  Lines 11 to 21 should create a post with your static text (the part like &#34;Book Tags: &#34; and &#34;Author Name: &#34;) and the submitted values (things like $entry[9] and $entry[1]).&#60;/p&#62;
&#60;p&#62;You're not restricting this code to any specific form, so it should run on all forms.  Is that what you wanted?&#60;/p&#62;
&#60;p&#62;I think you're close and if you keep at it, you'll get it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoeYoung on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-146243</link>
			<pubDate>Tue, 12 Feb 2013 11:30:44 +0000</pubDate>
			<dc:creator>JoeYoung</dc:creator>
			<guid isPermaLink="false">146243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
Yeah, I used the form as is and it still did not populate the info on the form to one page but at least it did not break the site. It did upload the photo to the media section of wordpress and it did create a post with the title and category info filled but not populate to a page in this case. I have no idea where the pdf went as I couldn't find it.&#60;/p&#62;
&#60;p&#62;ok, I see the above info you wrote was just a part of the whole template. I have no idea how to write this type of code. I believe I can do it though I just have to learn. So, where would I start versus having you or someone hard code it all for me?&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-146093</link>
			<pubDate>Mon, 11 Feb 2013 23:45:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146093@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The lines in green are just explanatory comments.  They don't show up in the rendered page.  You can leave them, edit them to make them your own, or delete the lines.&#60;/p&#62;
&#60;p&#62;My example was just a portion of the whole template, and was based on your early query string, where I guessed that the merge tags were accurate, so I used them.&#60;/p&#62;
&#60;p&#62;The code does go in your theme's functions.php and it can go at the end.  However, if the file ends with a ?&#38;gt; , this code will be fine.  You don't actually need that closing ?&#38;gt; and the opening &#38;lt;?php from my code.  You could delete them both. &#60;/p&#62;
&#60;p&#62;If your file does NOT end with ?&#38;gt; then delete my &#38;lt;?php at the beginning.&#60;/p&#62;
&#60;p&#62;My code was just a start to show you how it works.  You might want to include additional information and additional formatting.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoeYoung on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-145683</link>
			<pubDate>Sun, 10 Feb 2013 22:16:21 +0000</pubDate>
			<dc:creator>JoeYoung</dc:creator>
			<guid isPermaLink="false">145683@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
Okay, I think it is sinking in now. &#60;/p&#62;
&#60;p&#62;1. Do I use this exact form you have above to fill in my data?&#60;br /&#62;
2. Do I post this info in the functions.php file, and if so, where in the file, at the end?&#60;/p&#62;
&#60;p&#62;I know I need to fill out the complete information as you said: &#34;Continue until you have added all the fields.&#34; Here is how I would fill it out:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_after_submission&#38;quot;, &#38;quot;append_post_content&#38;quot;, 

10, 2);
function append_post_content($entry, $form){
// get the page we want to update
// page ID upload-content
$page_to_update = upload-content;
$page = get_post($page_to_update);
// append our new author submission
$page-&#38;gt;post_content .= $page-&#38;gt;post_content .
// separate the new submission from the last one
&#38;quot;&#38;lt;hr /&#38;gt;&#38;quot; .
// add some of the information
&#38;quot;Book title: &#38;quot;     . $entry[4] . &#38;quot;&#38;quot; .
&#38;quot;Author Name: &#38;quot;         . $entry[1] . &#38;quot;&#38;quot; .
&#38;quot;Upload Book File: &#38;quot;        . $entry[8] . &#38;quot;&#38;quot; .
&#38;quot;Book Category: &#38;quot;        . $entry[7] . &#38;quot;&#38;quot; .
&#38;quot;Book Tags: &#38;quot;        . $entry[9] . &#38;quot;&#38;quot; .
&#38;quot;&#38;lt;p&#38;gt;Description: &#38;quot; . $entry[5] . &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
&#38;quot;Website: &#38;quot;        . $entry[3] . &#38;quot;&#38;quot; .
 // continue until you have added all the fields
// update the page
wp_update_post($page);}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I am assuming that the lines in green are your notes and should be deleted, correct?&#60;/p&#62;
&#60;p&#62;thanks again,&#60;br /&#62;
Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-145364</link>
			<pubDate>Sun, 10 Feb 2013 00:15:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145364@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
&#34;Then you will need to add your data to the end of that existing page, and then call wp_update_post to write the new content to the page. &#34;&#60;/p&#62;
&#60;p&#62;How do I do this? Or, does the gform_after_submission hook do it?&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;This is all in the function which you link to gform_after_submission.  It will look something like this (not complete or fancy, but it illustrates the process):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
add_action(&#38;quot;gform_after_submission&#38;quot;, &#38;quot;append_post_content&#38;quot;, 10, 2);
function append_post_content($entry, $form){

	// get the page we want to update
	// page ID 405
	$page_to_update = 405;
	$page = get_post($page_to_update);

	// append our new author submission
	$page-&#38;gt;post_content .= $page-&#38;gt;post_content .
	// separate the new submission from the last one
	&#38;quot;&#38;lt;hr /&#38;gt;&#38;quot; .
	// add some of the information
	&#38;quot;Book title: &#38;quot;     . $entry[4] . &#38;quot;&#38;lt;br /&#38;gt;&#38;quot; .
	&#38;quot;Author: &#38;quot;         . $entry[1] . &#38;quot;&#38;lt;br /&#38;gt;&#38;quot; .
	&#38;quot;Website: &#38;quot;        . $entry[3] . &#38;quot;&#38;lt;br /&#38;gt;&#38;quot; .
	&#38;quot;&#38;lt;p&#38;gt;Description: &#38;quot; . $entry[5] . &#38;quot;&#38;lt;/p&#38;gt;&#38;quot;;
	// continue until you have added all the fields

	// update the page
	wp_update_post($page);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Lines 10 to 18 above are all one line, broken apart to display better here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-145362</link>
			<pubDate>Sun, 10 Feb 2013 00:04:41 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145362@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
When you said, &#34;You will be updating an existing page, so that post ID can be hard-coded.&#34; Did you mean simply changing the word post to page or leaving the code as is?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;In this code sample:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]&#38;lt;?php
add_action(&#38;quot;gform_after_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);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You would not need to use $post = get_post(&#60;strong&#62;$entry[&#34;post_id&#34;]&#60;/strong&#62;) since that is pulling the ID of the newly created post from the entry which was just submitted.  You already know your post ID (even if it refers to a Page, it's still a post ID) so you can hard code that here.  It would look like this, if the page you want to append your author/book data to is page 405:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$page_to_update = 405;
$post = get_post($page_to_update);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then whatever code you use afterward, in this function, will apply to post (Page) 405.&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Pages in WordPress are still just posts, with a post_type of 'page'.  It's all stored in the $wpdb-&#38;gt;posts table and the ID is necessary for pulling any content from that table.&#60;/em&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoeYoung on "Where does the Gravity Form information go after it is created?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created#post-145255</link>
			<pubDate>Sat, 09 Feb 2013 17:06:24 +0000</pubDate>
			<dc:creator>JoeYoung</dc:creator>
			<guid isPermaLink="false">145255@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Question 2:&#60;/p&#62;
&#60;p&#62;&#34;Then you will need to add your data to the end of that existing page, and then call wp_update_post to write the new content to the page. &#34;&#60;/p&#62;
&#60;p&#62;How do I do this? Or, does the gform_after_submission hook do it?&#60;/p&#62;
&#60;p&#62;sorry for my ignorance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
