<?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: Can&#039;t get some $post_data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/cant-get-some-post_data</link>
		<description>Gravity Support Forums Topic: Can&#039;t get some $post_data</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 14:15:09 +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/cant-get-some-post_data" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Can&#039;t get some $post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-get-some-post_data#post-257758</link>
			<pubDate>Fri, 17 May 2013 10:29:40 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">257758@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via priority support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>1-phantomdentist on "Can&#039;t get some $post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-get-some-post_data#post-255325</link>
			<pubDate>Thu, 16 May 2013 06:50:06 +0000</pubDate>
			<dc:creator>1-phantomdentist</dc:creator>
			<guid isPermaLink="false">255325@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;strong&#62;Update: I have tried overwriting post_content like so&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$post_data[&#38;quot;post_content&#38;quot;] = &#38;#39;&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;and yet the form still returns the post content. I can only think that either gravity forms doesn't use $post_data[&#34;post_content&#34;] for it's post boy field, which seems unlikely, or the $post_data[&#34;post_content&#34;] is not given a value until after this hook has fired. I am using &#34;Create content template&#34; with my post body field, could this effect it?&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;I am using the following code (full source in the following pastebin) to check if a form submission has certain checkboxes ticked, and if so go through a few conditionals to add some extra custom taxonomy terms and in 1 instance create a copy of the submitted post.&#60;/p&#62;
&#60;p&#62;This is basically working fine, The issue is that the copied post doesn't have all the information. There is no post content and the custom terms are missing. I am wondering if their is anything I am missing here specific to gravity forms. &#60;/p&#62;
&#60;p&#62;Here is how I am creating the copy of the post&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$postCopy = array(
			  &#38;#39;comment_status&#38;#39; =&#38;gt; $post_data[&#38;#39;comment_status&#38;#39;], // &#38;#39;closed&#38;#39; means no comments.
			  &#38;#39;post_author&#38;#39;    =&#38;gt; $post_data[&#38;#39;post_author&#38;#39;], //The user ID number of the author.
			  &#38;#39;post_content&#38;#39;   =&#38;gt; $post_data[&#38;#39;post_content&#38;#39;], //The full text of the post.
			  &#38;#39;post_date_gmt&#38;#39;  =&#38;gt; $post_data[&#38;#39;post_date_gmt&#38;#39;], //The time post was made, in GMT.
			  &#38;#39;post_name&#38;#39;      =&#38;gt; $post_data[&#38;#39;post_name&#38;#39;], // The name (slug) for your post
			  &#38;#39;post_status&#38;#39;    =&#38;gt; $post_data[&#38;#39;post_status&#38;#39;], //Set the status of the new post.
			  &#38;#39;post_title&#38;#39;     =&#38;gt; $post_data[&#38;#39;post_title&#38;#39;], //The title of your post.
			  &#38;#39;post_type&#38;#39;      =&#38;gt; &#38;#39;apprentice&#38;#39;, //You may want to insert a regular post, page, link, a menu item or some custom post type
			  &#38;#39;tax_input&#38;#39;      =&#38;gt; $post_data[&#38;#39;tax_input&#38;#39;]
			); 

			$postCopy[&#38;quot;tax_input&#38;quot;][&#38;#39;college&#38;#39;][] = &#38;#39;sussex-downs&#38;#39;; 

			wp_insert_post( $postCopy, $wp_error );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It seems I have an issue with both 'post_content'   =&#38;gt; $post_data['post_content'] and 'tax_input'      =&#38;gt; $post_data['tax_input']&#60;/p&#62;
&#60;p&#62;Full Source : &#60;a href=&#34;http://pastebin.com/gsw7yAmm&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/gsw7yAmm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
