<?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: Another Custom Taxonomy Question</title>
		<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question</link>
		<description>Gravity Support Forums Topic: Another Custom Taxonomy Question</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 19:38:08 +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/another-custom-taxonomy-question" rel="self" type="application/rss+xml" />

		<item>
			<title>Bryan Hoffman on "Another Custom Taxonomy Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question#post-14561</link>
			<pubDate>Thu, 16 Dec 2010 12:30:02 +0000</pubDate>
			<dc:creator>Bryan Hoffman</dc:creator>
			<guid isPermaLink="false">14561@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry David for not replying... I've got this project on a server with a load of other clients and am a little wary of giving out creds. I'll keep poking around to find out what and why and if I can move it over to an independent server I'll get you access.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Another Custom Taxonomy Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question#post-13831</link>
			<pubDate>Thu, 02 Dec 2010 17:53:10 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">13831@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Bryan, Still not seeing anything that would prevent this from working for non-logged-in users. Would you mind sending me a login to your WP install and FTP access? If not, send to &#60;a href=&#34;mailto:david@rocketgenius.com&#34;&#62;david@rocketgenius.com&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bryan Hoffman on "Another Custom Taxonomy Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question#post-13824</link>
			<pubDate>Thu, 02 Dec 2010 17:19:53 +0000</pubDate>
			<dc:creator>Bryan Hoffman</dc:creator>
			<guid isPermaLink="false">13824@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;Thanks for looking into this. Here's a link to the functions.php file code:&#60;/p&#62;
&#60;p&#62;&#60;a&#62;http://pastie.org/1342712&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Another Custom Taxonomy Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question#post-13823</link>
			<pubDate>Thu, 02 Dec 2010 17:03:59 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">13823@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Bryan. Not seeing anything here that would make this logged-in only. Could you post the entire file you have this code in to pastie.org or pastebin.com. You can post a link here or email me directly at &#60;a href=&#34;mailto:david@rocketgenius.com&#34;&#62;david@rocketgenius.com&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bryan Hoffman on "Another Custom Taxonomy Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-custom-taxonomy-question#post-13755</link>
			<pubDate>Wed, 01 Dec 2010 19:10:39 +0000</pubDate>
			<dc:creator>Bryan Hoffman</dc:creator>
			<guid isPermaLink="false">13755@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've got multiple forms that will be posting to a single Custom Post Type, and I'd like to be able to add a taxonomy term to each in order to filter them for displaying on separate pages.&#60;/p&#62;
&#60;p&#62;Using the code by Alex Cancado &#60;a href=&#34;http://forum.gravityhelp.com/topic/custom-taxonomies#post-4802&#34; rel=&#34;nofollow&#34;&#62;from this post&#60;/a&#62;, I've edited it down to this, which works only when logged in:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/* Custom Post Type &#38;amp; Taxonomy Form Hooks */

add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;new_post_type&#38;quot;, 10, 2);
function new_post_type($post_data, $form){

	$post_data[&#38;quot;post_type&#38;quot;] = &#38;quot;free-services&#38;quot;;

    if($form[&#38;quot;id&#38;quot;] == &#38;#39;3&#38;#39;){

		$post_data[&#38;quot;tax_input&#38;quot;] = array(&#38;quot;service-types&#38;quot; =&#38;gt; &#38;quot;psa-and-events&#38;quot;);

    }
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62; Like I said, when I'm logged into WP and fill out the form, the custom taxonomy comes in perfectly. When I'm logged out I get nothing. I'm wondering how I can get it to work without being logged in too.&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
