<?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: gform_post_submission -  add data to wp_postmeta</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-add-data-to-wp_postmeta</link>
		<description>Gravity Support Forums Topic: gform_post_submission -  add data to wp_postmeta</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 23:50:44 +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/gform_post_submission-add-data-to-wp_postmeta" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "gform_post_submission -  add data to wp_postmeta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-add-data-to-wp_postmeta#post-34797</link>
			<pubDate>Thu, 08 Sep 2011 09:03:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34797@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome.  Glad you figured that out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>craigedmonds on "gform_post_submission -  add data to wp_postmeta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-add-data-to-wp_postmeta#post-34792</link>
			<pubDate>Thu, 08 Sep 2011 05:24:20 +0000</pubDate>
			<dc:creator>craigedmonds</dc:creator>
			<guid isPermaLink="false">34792@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;[SOLVED]&#60;/p&#62;
&#60;p&#62;ok. I have figured it out&#60;/p&#62;
&#60;p&#62;I changed:&#60;br /&#62;
&#60;code&#62;$postid = get_post($entry[&#38;quot;post_id&#38;quot;]);&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$newpostid = $entry[&#38;#39;post_id&#38;#39;];&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Now all my custom fields in my custom post type is inserted the data correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>craigedmonds on "gform_post_submission -  add data to wp_postmeta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-add-data-to-wp_postmeta#post-34751</link>
			<pubDate>Wed, 07 Sep 2011 17:26:47 +0000</pubDate>
			<dc:creator>craigedmonds</dc:creator>
			<guid isPermaLink="false">34751@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to add some custom meta data to a post and am trying to use gform_post_submission as I am using V1.5.&#60;/p&#62;
&#60;p&#62;Below is the code/function I am supposed to be executing (inside my themes functions.php file), however the rows are not being created.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission_8&#38;quot;, &#38;quot;create_services_listing_entry&#38;quot;, 10, 2);
function create_services_listing_entry($entry, $form){

    //getting post
    $postid = get_post($entry[&#38;quot;post_id&#38;quot;]);

	//prepare the data for insertion into wp_postmeta
	$ecpt_whmcsservicesid = $entry[23];
	$ecpt_listingaddress = $entry[3];
	$ecpt_listingtown = $entry[4];
	$ecpt_listingpostcode = $entry[5];
	$ecpt_listingcountry = $entry[6];
	$ecpt_listingtel = $entry[7];
	$ecpt_listingemail= $entry[9];
	$ecpt_listingurl = $entry[9];
	$ecpt_listingmainbanner = $entry[18];
	$ecpt_listingkeywords = $entry[13];

	//insert data into wp_postmeta
	update_post_meta($postid, &#38;#39;ecpt_whmcsservicesid&#38;#39;, $ecpt_whmcsservicesid);
	update_post_meta($postid, &#38;#39;ecpt_listingaddress&#38;#39;, $ecpt_listingaddress);
	update_post_meta($postid, &#38;#39;ecpt_listingtown&#38;#39;, $ecpt_listingtown);
	update_post_meta($postid, &#38;#39;ecpt_listingpostcode&#38;#39;, $ecpt_listingpostcode);
	update_post_meta($postid, &#38;#39;ecpt_listingcountry&#38;#39;, $ecpt_listingcountry);
	update_post_meta($postid, &#38;#39;ecpt_listingtel&#38;#39;, $ecpt_listingtel);
	update_post_meta($postid, &#38;#39;ecpt_listingemail&#38;#39;, $ecpt_listingemail);
	update_post_meta($postid, &#38;#39;ecpt_listingurl&#38;#39;, $ecpt_listingurl);
	update_post_meta($postid, &#38;#39;ecpt_listingmainbanner&#38;#39;, $ecpt_listingmainbanner);
	update_post_meta($postid, &#38;#39;ecpt_listingkeywords&#38;#39;, $ecpt_listingkeywords);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any ideas what I am doing wrong here?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
