<?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</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-1</link>
		<description>Gravity Support Forums Topic: Custom Taxonomies</description>
		<language>en-US</language>
		<pubDate>Fri, 24 Apr 2026 02:25:07 +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-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Lee Hord on "Custom Taxonomies"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-1#post-11577</link>
			<pubDate>Mon, 25 Oct 2010 09:18:13 +0000</pubDate>
			<dc:creator>Lee Hord</dc:creator>
			<guid isPermaLink="false">11577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Apologies, I figured it out...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;empty_tags&#38;quot;, 10, 2);
function empty_tags($post_data, $form){

    $post_data[&#38;quot;tags_input&#38;quot;] = null;
    return $post_data;
}

add_filter(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;insert_custom_taxonomies&#38;quot;, 10, 2);
function insert_custom_taxonomies($entry, $form){

    $post_id = $entry[&#38;quot;post_id&#38;quot;];

    wp_set_object_terms($post_id, array(&#38;#39;tag&#38;#39;), &#38;#39;custom_tag&#38;#39;, true );
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Lee Hord on "Custom Taxonomies"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-taxonomies-1#post-11574</link>
			<pubDate>Mon, 25 Oct 2010 08:45:10 +0000</pubDate>
			<dc:creator>Lee Hord</dc:creator>
			<guid isPermaLink="false">11574@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to accomplish this for multiple forms?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;empty_tags&#38;quot;, 10, 2);
function empty_tags($post_data, $form){
    //replace 4 with your actual form id
    if($form[&#38;quot;id&#38;quot;] !=4)
        return;

    $post_data[&#38;quot;tags_input&#38;quot;] = null;
    return $post_data;
}

add_filter(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;insert_custom_taxonomies&#38;quot;, 10, 2);
function insert_custom_taxonomies($entry, $form){

    //REPLACE 4 with your actual form id
    if($form[&#38;quot;id&#38;quot;] !=4)
        return;

    //getting post
    $post_id = $entry[&#38;quot;post_id&#38;quot;];

    //REPLACE 2 with your actual field id and &#38;quot;post_tag&#38;quot; with your custom taxonomy
    wp_set_object_terms($post_id, explode(&#38;quot;,&#38;quot;, $entry[2]), &#38;quot;post_tag&#38;quot;);

    //REPLACE 3 with your actual field id and &#38;quot;activities&#38;quot; with your second taxonomy
    wp_set_object_terms($post_id, explode(&#38;quot;,&#38;quot;, $entry[3]), &#38;quot;activities&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It's perfect for a single form, but I have several others where I need to do the same.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
