<?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: Form to Custom Post Type -Again</title>
		<link>https://legacy.forums.gravityhelp.com/topic/form-to-custom-post-type-again</link>
		<description>Gravity Support Forums Topic: Form to Custom Post Type -Again</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 03:30:45 +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/form-to-custom-post-type-again" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Form to Custom Post Type -Again"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-to-custom-post-type-again#post-12088</link>
			<pubDate>Thu, 04 Nov 2010 11:44:56 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">12088@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That is because that example code is old and stil using &#34;set_post_type&#34; and not &#34;update_post_type&#34; which is why the error is about &#34;set_post_type&#34;.  Change the code to use update_post_type instead and give it a try.&#60;/p&#62;
&#60;p&#62;Look at line 3 in the above code. function set_post_type is incorrect.  Where you made the change isn't where the actual function call takes place.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lsparks on "Form to Custom Post Type -Again"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-to-custom-post-type-again#post-12049</link>
			<pubDate>Wed, 03 Nov 2010 20:56:08 +0000</pubDate>
			<dc:creator>lsparks</dc:creator>
			<guid isPermaLink="false">12049@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am attempting to implement custom post types via the instructions on &#60;a href=&#34;http://forum.gravityhelp.com/topic/add-a-form-to-create-a-new-custom-post-type&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/add-a-form-to-create-a-new-custom-post-type&#60;/a&#62;. I would have posted this there but the topic is closed. As of Wordpress 3.01 the filter update_post_type() no longer appears to work. &#60;/p&#62;
&#60;p&#62;This example code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;update_post_type&#38;quot;,10,2);
function set_post_type($post_data, $form){
echo&#38;quot;&#38;lt;pre&#38;gt;&#38;quot;;print_r($post_data);echo&#38;quot;&#38;lt;/pre&#38;gt;&#38;quot;;

    if($form[&#38;quot;id&#38;quot;] == &#38;#39;1&#38;#39;){
        $post_data[&#38;quot;post_type&#38;quot;] = &#38;quot;investments&#38;quot;;
    }
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;results in this error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Fatal error: Cannot redeclare set_post_type() (previously declared in post.php:1062) in wp-content/themes/twentyten/functions.php on line 153&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Any suggestions? &#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
