<?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: How to update a post?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post</link>
		<description>Gravity Support Forums Topic: How to update a post?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 09:42: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/how-to-update-a-post" rel="self" type="application/rss+xml" />

		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46827</link>
			<pubDate>Thu, 19 Jan 2012 04:14:24 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46827@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, used different merge tag: p={embed_post:ID}. Is it possible to use the embed_url merge tag though? How would I use it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46826</link>
			<pubDate>Thu, 19 Jan 2012 04:03:30 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46826@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
how do I use the embed_url in the query string? p={embed_url} did not work url={embed_url} neither. Just cannot find anything on google either. It's all about how to write the rewrite rules, but not what to actually write in the query string....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46792</link>
			<pubDate>Wed, 18 Jan 2012 18:05:24 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46792@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, correct. Calling the form from a post and it updates that information. Need to print out the merge tags page. It has grown since I last saw it, I think....&#60;/p&#62;
&#60;p&#62;Should I use 2 separate (duplicate) forms then? One for creating a post (and redirecting to the just created post) and then the duplicated one (obviously with a different merge tag embed_url  for the redirect!) for the editing of the post?&#60;br /&#62;
BTW: what makes a form create a post on GF? Is it only the title field that triggers that action?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46788</link>
			<pubDate>Wed, 18 Jan 2012 17:52:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46788@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you have the page/post where the form is embedded, you don't need to use the query string at all.  Just use the {embed_url} merge tag for your redirect URL and you're done.&#60;/p&#62;
&#60;p&#62;To be clear, you have a form on a page/post, and the form updates the information on that same page?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46786</link>
			<pubDate>Wed, 18 Jan 2012 17:48:19 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46786@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
the idea is to allow post editing only on the currently displayed post, which has the form embedded in it, let's say in a spoiler or a tab. So I just get the id with get_current_post_id or whatever it's called. But putting the ID of each post into a hidden field sounds like a great idea! Then I just use the merge tag for that field. If I use the hidden field merge tag it also should redirect on post creation right?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46783</link>
			<pubDate>Wed, 18 Jan 2012 17:36:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Seems like you need to have the post ID of the post you're updating, right?  Is it in a hidden field in the form?  If so, then use that merge tag instead of {post_id} in your redirect.  Otherwise, please explain how you know which post ID to update.  If you have it, we need to get it to the query string ?p=
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46779</link>
			<pubDate>Wed, 18 Jan 2012 17:28:55 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46779@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;br /&#62;
that worked like a charm! That is disabling post creation. One thing though which I am not sure yet on how to override/sort out: I have the form set up to redirect after submission with a query string of p={post_id}. See: &#60;a href=&#34;http://grab.by/bB3e&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/bB3e&#60;/a&#62;&#60;br /&#62;
Obviously if I edit the post, there is no post created, but I would still like the form to redirect to the just edited post. Is there a way to do this? How can I pass the ID to the query string? Or would I do it differently?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46764</link>
			<pubDate>Wed, 18 Jan 2012 16:35:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46764@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds like you are disabling post creation just fine. True?&#60;/p&#62;
&#60;p&#62;Then, you need to update an existing post, so you could probably use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;gform_after_submission&#60;/a&#62; hook to do whatever you want with the submitted data.  Before you run that, you will need the ID if the existing post you want to update.&#60;/p&#62;
&#60;p&#62;Is that enough information to go on?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46758</link>
			<pubDate>Wed, 18 Jan 2012 15:45:07 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46758@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;thanks. The wp_update_post will not be the problem. The problem is using the right GF hooks and using the correct GF objects to get all the necessary information from the just filled in form. Could you just give me a little outline on which hooks to call. Both mentioned above or just the one? Or any others even? There is for instance a post on the gform_disable_post_creation filter where David mentioned the below:&#60;/p&#62;
&#60;p&#62;Hi Tracy,&#60;/p&#62;
&#60;p&#62;Try adding the &#34;gform_disable_post_creation&#34; filter in the gform_pre_submission hook instead. You will need to run your check again to verify whether the post creation should actually be disabled.&#60;/p&#62;
&#60;p&#62;I do not totally understand why I would have to add it to the gform_pre_submission hook?&#60;br /&#62;
I really just want to get info about the GF side of things. For Wordpress functions I will consult the Codex.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How to update a post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-update-a-post#post-46731</link>
			<pubDate>Wed, 18 Jan 2012 13:58:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46731@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;sascha, the wp_update_post is a WordPress function:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_update_post&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_update_post&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That will not be visible today due to the SOPA blackout.  But the correct syntax can be found there.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
