<?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: Selecting Multiple Categories</title>
		<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories</link>
		<description>Gravity Support Forums Topic: Selecting Multiple Categories</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 02:58:40 +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/selecting-multiple-categories" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-42840</link>
			<pubDate>Fri, 02 Dec 2011 00:15:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">42840@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm going to close this topic.  If anyone has interest in the plugin solution coded by parakmh, please follow this topic:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/selecting-multiple-categories-add-on-for-gravity-forms&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/selecting-multiple-categories-add-on-for-gravity-forms&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If anyone has specific questions about this functionality, not related to this 3rd party add-on, please feel free to open a new topic. Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>parakmh on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-42722</link>
			<pubDate>Thu, 01 Dec 2011 08:36:35 +0000</pubDate>
			<dc:creator>parakmh</dc:creator>
			<guid isPermaLink="false">42722@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Gravity owners!&#60;br /&#62;
Since we also faced the same problem, getting the idea from David Smith, we extended the functionality and created a plugin that you can not only use the normal post category control where you can select your desired categories with checkboxes but also use a Drop-Down menu, Multi Select or Radio Buttons for your category selection.&#60;/p&#62;
&#60;p&#62;As you can imagine, this plugin is distributed for free (GPL) and you can learn more and download in a relevant how to post on our site: &#60;a href=&#34;http://www.moneytized.com/selecting-multiple-categories-gravity-forms/&#34; rel=&#34;nofollow&#34;&#62;Selecting Multiple Categories Addon for Gravity Forms&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;We have extensively tested it and think that it's a very stable release. If you have ANY problems with it, please do tell us and we'll be happy to help.&#60;/p&#62;
&#60;p&#62;Hope it can help many with the same issue and thanks once again to David Smith for giving us something to work on ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27622</link>
			<pubDate>Sat, 11 Jun 2011 17:15:39 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">27622@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@parkeast... THANK YOU&#60;/p&#62;
&#60;p&#62;This is just fantastic as I have about 80 categories and user-submitted posts.&#60;/p&#62;
&#60;p&#62;The only thing that could be improved is to allow two columns or three columns for formatting, but this is just great.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://awardsforebooks.com/add-your-ebook/&#34; rel=&#34;nofollow&#34;&#62;Please see your work in action, parkeast!&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27446</link>
			<pubDate>Thu, 09 Jun 2011 17:49:37 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">27446@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh... hi all! Sorry, sleep ya know.&#60;br /&#62;
Yes, it's working how I needed it to, thanks much to the help here!!&#60;/p&#62;
&#60;p&#62;Again, this isn't supported by them, but here's the &#34;fix.&#34;&#60;/p&#62;
&#60;p&#62;Paste this in your theme's function.php file...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/* Gravity Forms Categories */

add_action(&#38;#39;gform_post_submission&#38;#39;, &#38;#39;gform_add_categories&#38;#39;, 10, 2);
function gform_add_categories($entry, $form){

    if(!rgar($entry, &#38;#39;post_id&#38;#39;))
        return;

    $post_id = rgar($entry, &#38;#39;post_id&#38;#39;);
    $valid_cat_ids = get_term_ids();
    $cat_ids = array();

    foreach($form[&#38;#39;fields&#38;#39;] as $field){

        if(strpos($field[&#38;#39;cssClass&#38;#39;], &#38;#39;add_categories&#38;#39;) === false)
            continue;

        foreach($entry as $key =&#38;gt; $value){

            if(intval($key) != $field[&#38;#39;id&#38;#39;] &#124;&#124; !in_array($value, $valid_cat_ids))
                continue;

            $cat_ids[] = (int) $value;

        }

    }

    wp_set_object_terms($post_id, $cat_ids, &#38;#39;category&#38;#39;, false);

}

function get_term_ids(){

    $categories = get_terms(&#38;#39;category&#38;#39;, &#38;#39;hide_empty=0&#38;#39;);
    $cat_ids = array();

    foreach($categories as $category)
        $cat_ids[] = $category-&#38;gt;term_id;

    return $cat_ids;
}

function print_rr($array){
    echo &#38;#39;&#38;lt;pre&#38;gt;&#38;#39;;
    print_r($array);
    echo &#38;#39;&#38;lt;/pre&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then, when you add a check box, simply put the category ID # in the &#34;value&#34; field.&#60;br /&#62;
You HAVE to put the IDs in for every category you want it to post into. So it is a &#34;hack&#34;, but it works great.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27385</link>
			<pubDate>Wed, 08 Jun 2011 23:28:06 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">27385@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, I can understand, but at the same time, my Global eBook Awards contest close at the end of the month and we're trying to ramp up, so this feature will be missed if it's not going to be ready right away.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27209</link>
			<pubDate>Tue, 07 Jun 2011 14:50:55 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">27209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Joseph, we'd like to make the category field more functional but there are other fractures that have just been a higher priority thus far.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27195</link>
			<pubDate>Tue, 07 Jun 2011 12:22:53 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">27195@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Truth is that I would really love to just be able to have my categories show up in alphabetical order, but it looks like it's based on some obscure field. It's not based on date created. Can't we alphabetize the drop-down instead of laying out a bunch of checkboxes?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-27194</link>
			<pubDate>Tue, 07 Jun 2011 12:21:38 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">27194@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What's the haps on this? I'd really like to be able to do this as well and I'm happy to edit my common.php to get it. Screenshots of the solution, please?? And why can't this be supported??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hafizmohd on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-26981</link>
			<pubDate>Sat, 04 Jun 2011 11:23:41 +0000</pubDate>
			<dc:creator>hafizmohd</dc:creator>
			<guid isPermaLink="false">26981@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Did it work from your end @parkeast?&#60;br /&#62;
I try to post this, but maybe i didnt specify my exact problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Selecting Multiple Categories"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/selecting-multiple-categories#post-26917</link>
			<pubDate>Fri, 03 Jun 2011 12:56:06 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">26917@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just got an email from you. ;D
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
