<?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 Tag: peralty - Recent Posts</title>
		<link>https://legacy.forums.gravityhelp.com/tags/peralty</link>
		<description>Gravity Support Forums Tag: peralty - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 16:35:15 +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/tags/peralty" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-376012</link>
			<pubDate>Mon, 15 Jul 2013 06:28:19 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">376012@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via new support form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ysan on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-373947</link>
			<pubDate>Wed, 10 Jul 2013 17:49:30 +0000</pubDate>
			<dc:creator>ysan</dc:creator>
			<guid isPermaLink="false">373947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;You cannot imagine how happy I am. Really thank you!&#60;/p&#62;
&#60;p&#62;Can you take a look for another small change? &#60;/p&#62;
&#60;p&#62;In the same form ID, there are several category fields IDs I would like to sort numerically.&#60;/p&#62;
&#60;p&#62;In my example :&#60;/p&#62;
&#60;p&#62;Form ID : 2&#60;/p&#62;
&#60;p&#62;Field ID's : 34 and 38&#60;/p&#62;
&#60;p&#62;Again, thank you very much for this great support!&#60;/p&#62;
&#60;p&#62;KR&#60;/p&#62;
&#60;p&#62;Y
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-373672</link>
			<pubDate>Wed, 10 Jul 2013 14:24:08 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">373672@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What you will need to do is use the gform_pre_render hook to sort the field choices (which contains the categories). The following code snippet should do the trick:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//NOTE: replace 9 below (int gform_pre_render_9) with your actual form ID
add_filter(&#38;quot;gform_pre_render_9&#38;quot;, &#38;quot;sort_categories&#38;quot;);

function sort_categories($form){

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

        //NOTE: replace 2 below (in $field[&#38;quot;id&#38;quot;] == 2) with your category field ID
        if($field[&#38;quot;id&#38;quot;] == 2)
            usort($field[&#38;quot;choices&#38;quot;], &#38;quot;sort_numerically&#38;quot;);
    }

    return $form;
}

function sort_numerically($a, $b){
    return floatval($a[&#38;quot;text&#38;quot;]) &#38;gt; floatval($b[&#38;quot;text&#38;quot;]);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>ysan on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-370275</link>
			<pubDate>Tue, 09 Jul 2013 05:28:09 +0000</pubDate>
			<dc:creator>ysan</dc:creator>
			<guid isPermaLink="false">370275@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;The categories need to be sorted on the actual form. So I have a form with a &#34;post field - category&#34; and I would like to show the number of participants with checkboxes.&#60;/p&#62;
&#60;p&#62;The parent category is &#34;number of participants&#34;&#60;br /&#62;
Child categories are 10, 20, 30, ... until 200&#60;/p&#62;
&#60;p&#62;As an answer on your question n° 2 : only a selected few categories (the child categories of &#34;number of participants&#34;&#60;/p&#62;
&#60;p&#62;This is how it looks on the site &#60;a href=&#34;http://minus.com/lfyBypbVqwal4&#34; rel=&#34;nofollow&#34;&#62;http://minus.com/lfyBypbVqwal4&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And this is how I would like them to see :&#60;/p&#62;
&#60;p&#62;Number of Participants&#60;br /&#62;
- 10&#60;br /&#62;
- 20&#60;br /&#62;
- 30&#60;br /&#62;
- ...&#60;br /&#62;
- 200&#60;/p&#62;
&#60;p&#62;It is not clear to me how the categories are now sorted in the form (on the actual website). &#60;/p&#62;
&#60;p&#62;I have tried several things to get them in a numerical order&#60;br /&#62;
- make the slug alphabetical (a10, b20, and so on)&#60;br /&#62;
- leading zero in category name (010, 020, and so on)&#60;br /&#62;
- changing the way wordpress sorts the categories.&#60;/p&#62;
&#60;p&#62;A solution for me could be to force GF to use the slugs for ordering the categories. Ordering by cat ID is also a good (perhaps better) solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-368828</link>
			<pubDate>Mon, 08 Jul 2013 16:08:51 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">368828@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To make sure I answer your question correctly, let me ask you a couple of questions.&#60;br /&#62;
1- Where do you need the categories to be sorted? WP dashboard in the form editor, or on the front end of your website (the actual form)&#60;br /&#62;
2- If the answer to the first question is on the front end, are you displaying all categories or a selected few categories? Also, which field type are you using to display these categories? (i.e. drop down, radio button, etc...)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ysan on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-368169</link>
			<pubDate>Mon, 08 Jul 2013 10:46:52 +0000</pubDate>
			<dc:creator>ysan</dc:creator>
			<guid isPermaLink="false">368169@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you inform me how the categories are ordered now in GF? I might make some changes. I have tried to change the slug - no results however. The categories are also not ordered by cat ID. So by what parameter are they?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-368166</link>
			<pubDate>Mon, 08 Jul 2013 10:43:08 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">368166@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the suggestion. We will be looking at what it takes to sort categories alphabetically in a future version.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ysan on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-364923</link>
			<pubDate>Sat, 06 Jul 2013 08:16:08 +0000</pubDate>
			<dc:creator>ysan</dc:creator>
			<guid isPermaLink="false">364923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;as mentioned before, changing the slug in something &#34;alphabetical&#34; did not work in order to arrange the categories on the admin side alphabetically. However this code does&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;get_terms_args&#38;#39;, &#38;#39;wpse_53094_sort_get_terms_args&#38;#39;, 10, 2 );
function wpse_53094_sort_get_terms_args( $args, $taxonomies )
{
    global $pagenow;
    if( !is_admin() &#124;&#124; (&#38;#39;post.php&#38;#39; != $pagenow &#38;amp;&#38;amp; &#38;#39;post-new.php&#38;#39; != $pagenow) )
        return $args;

    $args[&#38;#39;orderby&#38;#39;] = &#38;#39;slug&#38;#39;;
    $args[&#38;#39;order&#38;#39;] = &#38;#39;DESC&#38;#39;;

    return $args;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;as found on this website : &#60;a href=&#34;http://wordpress.stackexchange.com/questions/53094/how-to-change-the-categories-order-in-the-admin-dashboard&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.stackexchange.com/questions/53094/how-to-change-the-categories-order-in-the-admin-dashboard&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I was hoping that Gravity Forms copies the way Wordpress orders the categories; but no luck so far...&#60;/p&#62;
&#60;p&#62;Have a nice weekend
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ysan on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-363811</link>
			<pubDate>Fri, 05 Jul 2013 18:19:31 +0000</pubDate>
			<dc:creator>ysan</dc:creator>
			<guid isPermaLink="false">363811@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I have changed the slugs into an alphabetical order&#60;/p&#62;
&#60;p&#62;category &#34;10&#34; gets slug &#34;a-10&#34;, &#34;20&#34; gets slug &#34;b-20&#34; and so on. But it did not change the order of the categories.&#60;/p&#62;
&#60;p&#62;Hope you and your developers can find a solution.&#60;/p&#62;
&#60;p&#62;KR&#60;/p&#62;
&#60;p&#62;Ysan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Alphabetise Category Drop Downs"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alphabetise-category-drop-downs#post-363263</link>
			<pubDate>Fri, 05 Jul 2013 09:38:22 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">363263@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;As far as I know, WordPress sorts them by slug, and treats them as text, so if your slugs are those numbers, and it is treating them like text, then to WordPress, it is sorting them correctly. I am not entirely sure how to change this, but I'll send a note to our developers.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
