<?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 create new post type in multisite install</title>
		<link>https://legacy.forums.gravityhelp.com/topic/form-to-create-new-post-type-in-multisite</link>
		<description>Gravity Support Forums Topic: Form to create new post type in multisite install</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:45:23 +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-create-new-post-type-in-multisite" rel="self" type="application/rss+xml" />

		<item>
			<title>jcollier on "Form to create new post type in multisite install"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-to-create-new-post-type-in-multisite#post-11122</link>
			<pubDate>Wed, 13 Oct 2010 15:01:30 +0000</pubDate>
			<dc:creator>jcollier</dc:creator>
			<guid isPermaLink="false">11122@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, exactly. It is the if statement (wrapping the form ID) that I was looking for, since form 1 is in use in multiple sites.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Form to create new post type in multisite install"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-to-create-new-post-type-in-multisite#post-11121</link>
			<pubDate>Wed, 13 Oct 2010 14:58:48 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">11121@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To use the gform_post_data filter for a specific form you would append the form id to that filter call.  For example:&#60;/p&#62;
&#60;p&#62;Instead of this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;change_post_data&#38;quot;, 10, 2);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You would do this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data_5&#38;quot;, &#38;quot;change_post_data&#38;quot;, 10, 2);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The 5 in the example above (gform_post_data_5) is the form id.&#60;/p&#62;
&#60;p&#62;Now keep in mind that when doing this if you add this to a theme that is shared by other sites then it's going to fire for form id 5 on that site also.  You would have to wrap it all in an if statement to see if the site id in the multi-site install is a specific id to force it only to do so on a specific site in a multisite install.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jcollier on "Form to create new post type in multisite install"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-to-create-new-post-type-in-multisite#post-11114</link>
			<pubDate>Wed, 13 Oct 2010 14:43:29 +0000</pubDate>
			<dc:creator>jcollier</dc:creator>
			<guid isPermaLink="false">11114@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To extend this now-closed thread ...&#60;/p&#62;
&#60;p&#62;&#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;&#60;/p&#62;
&#60;p&#62;How do I reference a form ID for just one site within a 3.01 multisite installation?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
