<?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 Taxonomies for Multiple forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-for-multiple-forms</link>
		<description>Gravity Support Forums Topic: Custom Taxonomies for Multiple forms</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 19:54:26 +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-taxonomies-for-multiple-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Custom Taxonomies for Multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-for-multiple-forms#post-16142</link>
			<pubDate>Thu, 13 Jan 2011 14:25:59 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">16142@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Justin,&#60;/p&#62;
&#60;p&#62;Give this a go: &#60;a href=&#34;http://pastie.org/1457195&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1457195&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>justinabes on "Custom Taxonomies for Multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-for-multiple-forms#post-16104</link>
			<pubDate>Thu, 13 Jan 2011 06:54:27 +0000</pubDate>
			<dc:creator>justinabes</dc:creator>
			<guid isPermaLink="false">16104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Support&#60;/p&#62;
&#60;p&#62;I am trying to get CPT Taxonomies working using Gravity Forms.&#60;br /&#62;
The first form with ID 1 works, however I cannot get the 2nd form Taxonomies to work using the same method could someone possibility suggest what I have done incorrect?&#60;/p&#62;
&#60;p&#62;('add_filter(&#34;gform_post_data&#34;, &#34;empty_tags&#34;, 10, 2);&#60;br /&#62;
function empty_tags($post_data, $form){&#60;br /&#62;
    //replace 4 with your actual form id&#60;br /&#62;
    if($form[&#34;id&#34;] !=1){$post_data[&#34;tags_input&#34;] = null;}&#60;/p&#62;
&#60;p&#62;	if($form[&#34;id&#34;] !=2){$post_data[&#34;tags_input&#34;] = null;}&#60;/p&#62;
&#60;p&#62;    return $post_data;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_post_submission&#34;, &#34;insert_custom_taxonomies&#34;, 10, 2);&#60;br /&#62;
function insert_custom_taxonomies($entry, $form){&#60;/p&#62;
&#60;p&#62;    //REPLACE 4 with your actual form id&#60;br /&#62;
    if($form[&#34;id&#34;] !=1)&#60;br /&#62;
        return;&#60;/p&#62;
&#60;p&#62;    //getting post&#60;br /&#62;
    $post_id = $entry[&#34;post_id&#34;];&#60;/p&#62;
&#60;p&#62;    //REPLACE 2 with your actual field id and &#34;post_tag&#34; with your custom taxonomy&#60;br /&#62;
    wp_set_object_terms($post_id, explode(&#34;,&#34;, $entry[7]), &#34;directory-province&#34;);&#60;/p&#62;
&#60;p&#62;    //REPLACE 3 with your actual field id and &#34;activities&#34; with your second taxonomy&#60;br /&#62;
    wp_set_object_terms($post_id, explode(&#34;,&#34;, $entry[8]), &#34;directory-type&#34;);	&#60;/p&#62;
&#60;p&#62;	//REPLACE 4 with your actual form id&#60;br /&#62;
    if($form[&#34;id&#34;] !=2)&#60;br /&#62;
        return;&#60;/p&#62;
&#60;p&#62;    //getting post&#60;br /&#62;
    $post_id = $entry[&#34;post_id&#34;];&#60;/p&#62;
&#60;p&#62;    //REPLACE 2 with your actual field id and &#34;post_tag&#34; with your custom taxonomy&#60;br /&#62;
    wp_set_object_terms($post_id, explode(&#34;,&#34;, $entry[4]), &#34;classified-province&#34;);&#60;/p&#62;
&#60;p&#62;    //REPLACE 3 with your actual field id and &#34;activities&#34; with your second taxonomy&#60;br /&#62;
    wp_set_object_terms($post_id, explode(&#34;,&#34;, $entry[5]), &#34;classified-type&#34;);&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
')&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
