<?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: Replace standard comment form with a gravity form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form</link>
		<description>Gravity Support Forums Topic: Replace standard comment form with a gravity form</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 14:58:27 +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/replace-standard-comment-form-with-a-gravity-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-77667</link>
			<pubDate>Thu, 27 Sep 2012 11:49:35 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">77667@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@rdpalmer, please begin a new topic and clearly state your problem and what you have already tried, and where you are stuck.  This topic is over 6 months old and every situation is unique.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rdpalmer on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-77518</link>
			<pubDate>Wed, 26 Sep 2012 14:38:45 +0000</pubDate>
			<dc:creator>rdpalmer</dc:creator>
			<guid isPermaLink="false">77518@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would also like to get the post_id working. Does anyone have any ideas or another method to get this working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jb510 on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-51806</link>
			<pubDate>Thu, 08 Mar 2012 20:31:18 +0000</pubDate>
			<dc:creator>jb510</dc:creator>
			<guid isPermaLink="false">51806@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also just noticed FIELD_ID's should be queried with strings not integers so  $entry[17] should be  $entry['17']&#60;/p&#62;
&#60;p&#62;Maybe that was the problem with the other stuff too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jb510 on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-51804</link>
			<pubDate>Thu, 08 Mar 2012 20:20:36 +0000</pubDate>
			<dc:creator>jb510</dc:creator>
			<guid isPermaLink="false">51804@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I got this working using the code above with one exception.  It doesn't seem to be populating the comment_post_ID field.  The comment gets created without being attached to a post and then can't be managed (approve/spam/delete) from the dashboard.  &#60;/p&#62;
&#60;p&#62;I ended up hard coding the post ID, since I know the page the form is coming from, not sure why it wasn't working.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jb510 on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-51710</link>
			<pubDate>Thu, 08 Mar 2012 01:32:09 +0000</pubDate>
			<dc:creator>jb510</dc:creator>
			<guid isPermaLink="false">51710@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On one page I basically want to collect some personal info at the same time a comment is generated, was wondering if that was even possible but it looks like it is.  &#60;/p&#62;
&#60;p&#62;I'm going to give it a try wih this plus a few more fields that just need to get emailed to someone like a normal form submission.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>trewknowledge on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-48179</link>
			<pubDate>Thu, 02 Feb 2012 14:17:01 +0000</pubDate>
			<dc:creator>trewknowledge</dc:creator>
			<guid isPermaLink="false">48179@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was able to add form submissions and turn them into comments by using the following code. In your theme you would have to replace the comment form by adding your gravity form in single.php. There are many posts on here on how to add a form to a template page.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_1&#38;quot;, &#38;quot;add_comment&#38;quot;); //change form ID to match your form
function add_comment($entry, $form){

	$time = current_time(&#38;#39;mysql&#38;#39;);

	$data = array(
		&#38;#39;comment_post_ID&#38;#39; =&#38;gt; $entry[&#38;quot;post_id&#38;quot;] ,
		&#38;#39;comment_author&#38;#39; =&#38;gt; $entry[17], //change to match your author field ID
		&#38;#39;comment_author_email&#38;#39; =&#38;gt; $entry[18], //change to match your email field ID
		&#38;#39;comment_content&#38;#39; =&#38;gt; $entry[32], //change to match your comment field ID
		&#38;#39;comment_type&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
		&#38;#39;comment_parent&#38;#39; =&#38;gt; 0,
		&#38;#39;user_id&#38;#39; =&#38;gt; $entry[&#38;quot;created_by&#38;quot;],
		&#38;#39;comment_author_IP&#38;#39; =&#38;gt; $entry[&#38;quot;ip&#38;quot;] ,
		&#38;#39;comment_agent&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
		&#38;#39;comment_date&#38;#39; =&#38;gt; $time,
		&#38;#39;comment_approved&#38;#39; =&#38;gt; 1,
	);
		wp_insert_comment($data);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>pbateman on "Replace standard comment form with a gravity form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/replace-standard-comment-form-with-a-gravity-form#post-48132</link>
			<pubDate>Thu, 02 Feb 2012 05:24:35 +0000</pubDate>
			<dc:creator>pbateman</dc:creator>
			<guid isPermaLink="false">48132@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is it possible to replace the standard comment form on single blog posts in WP with a gravity form?&#60;/p&#62;
&#60;p&#62;If so: how would I do this?&#60;/p&#62;
&#60;p&#62;Main reason why I ask is that the standard comment form takes you to an error page. I really like how gravity forms handles errors though.&#60;/p&#62;
&#60;p&#62;Additional question:&#60;br /&#62;
If a gravity form is in the bottom of a website and someone forgets to put something in a required field then it automatically scrolls back up to the top of the page. So if that person does not scroll down it won't see that sending the form has not worked.&#60;/p&#62;
&#60;p&#62;Florian
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
