<?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: Getting the POST ID</title>
		<link>https://legacy.forums.gravityhelp.com/topic/getting-the-post-id</link>
		<description>Gravity Support Forums Topic: Getting the POST ID</description>
		<language>en-US</language>
		<pubDate>Sun, 12 Apr 2026 08:33:26 +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/getting-the-post-id" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Getting the POST ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-the-post-id#post-43342</link>
			<pubDate>Wed, 07 Dec 2011 14:11:09 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">43342@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The gform_after_submission hook has access to the entry object which contains the post id of the post that is created by the form.&#60;/p&#62;
&#60;p&#62;Documentation for the gform_after_submission hook is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Documentation for the entry object is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Entry_Object&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Entry_Object&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>John Bacopulos on "Getting the POST ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-the-post-id#post-43332</link>
			<pubDate>Wed, 07 Dec 2011 13:35:48 +0000</pubDate>
			<dc:creator>John Bacopulos</dc:creator>
			<guid isPermaLink="false">43332@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Figured it out. I had to use $entry[&#34;post_id&#34;]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>John Bacopulos on "Getting the POST ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-the-post-id#post-43327</link>
			<pubDate>Wed, 07 Dec 2011 13:16:35 +0000</pubDate>
			<dc:creator>John Bacopulos</dc:creator>
			<guid isPermaLink="false">43327@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am using GF for user submissions to a custom post type. I have that working great.&#60;/p&#62;
&#60;p&#62;I am now in the process of taking part of the form information and creating a comment out of it. I am doing so using &#34;gform_after_submission&#34; along with &#34;wp_insert_comment&#34;&#60;/p&#62;
&#60;p&#62;Currently I am able to pass the users name, email, and the comment to the appropriate spots in the database.&#60;/p&#62;
&#60;p&#62;My only issue is associating this comment with the post that was created with this form.&#60;/p&#62;
&#60;p&#62;Do you know of a way to get the Post ID that was just created when submitting the form?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
