<?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: Creating a WP post, sending query string and output AJAX confirmation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/creating-a-wp-post-sending-query-string-and-output-ajax-confirmation</link>
		<description>Gravity Support Forums Topic: Creating a WP post, sending query string and output AJAX confirmation</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 09:20:15 +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/creating-a-wp-post-sending-query-string-and-output-ajax-confirmation" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Creating a WP post, sending query string and output AJAX confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/creating-a-wp-post-sending-query-string-and-output-ajax-confirmation#post-18730</link>
			<pubDate>Wed, 16 Feb 2011 18:03:22 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18730@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In order to integrate with a 3rd party mailing list service you would have to do so using API hooks when the form is submitted.&#60;/p&#62;
&#60;p&#62;You would want to use the gform_post_submission hook which has access to the Entry object.  The Entry object all data from a submitted form.&#60;/p&#62;
&#60;p&#62;You can use the gform_post_submission 2 different ways.&#60;/p&#62;
&#60;p&#62;If you want to apply the code to ALL forms you would use it this way:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;post_submission&#38;quot;, 10, 2);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you want to apply the code to a SPECIFIC form you would use it this way, this example would target form id 5:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission_5&#38;quot;, &#38;quot;post_submission&#38;quot;, 10, 2);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here is an example of the gform_post_submission in action, this example uses the gform_post_submission hook to change the post content, adding values from submitted fields, including an image field.  It doesn't do what you want it to do, it's purely an example of the gform_post_submission usage:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#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);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The gform_post_submission hook has access to the Entry object.  Here are examples:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry[&#38;quot;date_created&#38;quot;];   //returns the entry date
$entry[&#38;quot;1&#38;quot;];              //returns the value associated with field 1
$entry[&#38;quot;2.4&#38;quot;];            //returns the value associated with the street input for the address field 2&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So you would use the field id OR keywords for default data associated with the entry.  These keywords are:&#60;/p&#62;
&#60;p&#62;- id&#60;br /&#62;
- date_created&#60;br /&#62;
- is_starred&#60;br /&#62;
- is_read&#60;br /&#62;
- ip&#60;br /&#62;
- source_url&#60;br /&#62;
- post_id&#60;br /&#62;
- FIELD_ID&#60;/p&#62;
&#60;p&#62;If this is all greek to you... then hiring a WordPress consultant to do the implementation may not be a bad idea.  I would recommend:&#60;/p&#62;
&#60;p&#62;Ounce of Talent&#60;br /&#62;
&#60;a href=&#34;http://www.ounceoftalent.com&#34; rel=&#34;nofollow&#34;&#62;http://www.ounceoftalent.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;WebDevStudios&#60;br /&#62;
&#60;a href=&#34;http://www.webdevstudios.com&#34; rel=&#34;nofollow&#34;&#62;http://www.webdevstudios.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jamie on "Creating a WP post, sending query string and output AJAX confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/creating-a-wp-post-sending-query-string-and-output-ajax-confirmation#post-18727</link>
			<pubDate>Wed, 16 Feb 2011 17:55:05 +0000</pubDate>
			<dc:creator>Jamie</dc:creator>
			<guid isPermaLink="false">18727@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;br /&#62;
I've been searching Gravity Forms documentation and forums for the past week or so, but haven't found a solid solution yet. I've built a form that creates a Wordpress post and outputs an AJAX confirmation message. Now I need to pass the data in remaining fields to a third party mailing list service (which is unfortunately not MailChimp). I understand this is an incredibly complex hook, so would anyone have advice on the best way to craft this function, or possibly refer me to someone who could?&#60;/p&#62;
&#60;p&#62;Thanks for any help in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
