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

		<item>
			<title>Alex Cancado on "Custom Taxonomies in multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-in-multiple-forms-1#post-12247</link>
			<pubDate>Sun, 07 Nov 2010 21:05:50 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">12247@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To address a specific form, you can use the variable &#60;code&#62;$form[&#38;quot;id&#38;quot;]&#60;/code&#62; To get the field ID, you can inspect the html of the form and get it from the input name (i.e. &#38;lt;input name='input_10&#34; /&#38;gt;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>conpark on "Custom Taxonomies in multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-in-multiple-forms-1#post-12224</link>
			<pubDate>Sun, 07 Nov 2010 13:31:04 +0000</pubDate>
			<dc:creator>conpark</dc:creator>
			<guid isPermaLink="false">12224@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;i need an option to use custom taxonomies in multiple forms.&#60;br /&#62;
At the moment i use a hook for adding custom taxonomies instead of tags.&#60;/p&#62;
&#60;p&#62;Unfortunately the hook doesn't work if i use it in more than one form.&#60;br /&#62;
Is there an option to adress a specific form and the id of the tag-field?&#60;/p&#62;
&#60;p&#62;For now, the input appears in two custom taxonomies based on the field id...&#60;/p&#62;
&#60;p&#62;Here is the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
//Tag to Taxonomy - A fix for gravity forms

function hyp_tag_to_taxonomy( $form ){
     $id = $form[&#38;#39;post_id&#38;#39;];
     $raw_tag_list = $form[&#38;#39;12&#38;#39;];
     $tag_array = explode(&#38;#39;,&#38;#39;, $raw_tag_list);

     foreach ($tag_array as $tag){
          wp_set_object_terms( $id, $tag, &#38;#39;collective&#38;#39;,true);
     }
}

add_action( &#38;#39;gform_post_submission&#38;#39;, &#38;#39;hyp_tag_to_taxonomy&#38;#39; );

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
