<?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: Custom Post Type Category</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-post-type-category</link>
		<description>Gravity Support Forums Topic: Custom Post Type Category</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:22:01 +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/custom-post-type-category" rel="self" type="application/rss+xml" />

		<item>
			<title>thefidler on "Custom Post Type Category"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-post-type-category#post-13385</link>
			<pubDate>Fri, 26 Nov 2010 10:52:54 +0000</pubDate>
			<dc:creator>thefidler</dc:creator>
			<guid isPermaLink="false">13385@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using the code&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;add_filter(&#34;gform_post_data&#34;, &#34;update_post_type&#34;, 10, 2);&#60;br /&#62;
function update_post_type($post_data, $form){&#60;/p&#62;
&#60;p&#62;if($form[&#34;id&#34;] == '3'){&#60;br /&#62;
$post_data[&#34;post_type&#34;] = &#34;event&#34;;&#60;br /&#62;
}&#60;br /&#62;
elseif ($form[&#34;id&#34;] == '4'){&#60;br /&#62;
$post_data[&#34;post_type&#34;] = &#34;schedule&#34;;&#60;br /&#62;
}&#60;br /&#62;
elseif ($form[&#34;id&#34;] == '5'){&#60;br /&#62;
$post_data[&#34;post_type&#34;] = &#34;entity&#34;;&#60;br /&#62;
}&#60;br /&#62;
return $post_data;&#60;br /&#62;
}
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62; to create my custom post type.  Everything works fine except that the category does not update.  Is there something additional I have to do to update a category on a custom post type?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
