<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WordPress 2.2 Changes Category Order Behavior?</title>
	<atom:link href="http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<lastBuildDate>Wed, 23 May 2012 23:05:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Nick Georgakis</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-42790</link>
		<dc:creator>Nick Georgakis</dc:creator>
		<pubDate>Fri, 17 Aug 2007 19:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-42790</guid>
		<description>Hello,
 I have developed a custom plugin to do just that - specify a custom primary category that is used to generate the permalinks
&lt;a href=&#039;http://www.ngtech.gr/blog/en/my-wordpress-plugins/ng-primary-category-wordpress-plugin&#039;&gt;NG Custom Category WordPress Plugin &lt;/a&gt; 
Any suggestions are welcomed!</description>
		<content:encoded><![CDATA[<p>Hello,<br />
 I have developed a custom plugin to do just that - specify a custom primary category that is used to generate the permalinks<br />
<a  href="http://www.ngtech.gr/blog/en/my-wordpress-plugins/ng-primary-category-wordpress-plugin">NG Custom Category WordPress Plugin </a><br />
Any suggestions are welcomed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 6 WordPress Plugins to Increase Earnings</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-42037</link>
		<dc:creator>6 WordPress Plugins to Increase Earnings</dc:creator>
		<pubDate>Tue, 19 Jun 2007 21:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-42037</guid>
		<description>[...] Permalinks Migration - This plugin allows you to change your permalinks structure. Due to a fairly severe bug in WordPress 2.2 I decided to change my permalinks structure away from using the category in my URLs. This plugin [...]</description>
		<content:encoded><![CDATA[<p>[...] Permalinks Migration - This plugin allows you to change your permalinks structure. Due to a fairly severe bug in WordPress 2.2 I decided to change my permalinks structure away from using the category in my URLs. This plugin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41935</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 14 Jun 2007 18:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41935</guid>
		<description>Sorry to be a bit daft here, but I can&#039;t figure out how to apply the patch. I&#039;ve tried to add the blocks of code at the end of the pages you have listed before it (link-template.php, category-template.php), but it creates errors.

Could you give me a rough idea of how I should apply this patch?

Cheers</description>
		<content:encoded><![CDATA[<p>Sorry to be a bit daft here, but I can't figure out how to apply the patch. I've tried to add the blocks of code at the end of the pages you have listed before it (link-template.php, category-template.php), but it creates errors.</p>
<p>Could you give me a rough idea of how I should apply this patch?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Jaquith</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41647</link>
		<dc:creator>Mark Jaquith</dc:creator>
		<pubDate>Mon, 28 May 2007 06:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41647</guid>
		<description>Icky bug.  &lt;a href=&quot;http://trac.wordpress.org/attachment/ticket/4335/cat_id_order__branches_2.2.diff?format=txt&quot;&gt;Here is a patch for 2.2&lt;/a&gt;.  What happened was that categories were re-ordered by name for display purposes, and that ended up choosing new primary category for category-based permalink setups as a side effect.  My patch has &lt;code&gt;get_permalink()&lt;/code&gt; sort the category list by ID, so no matter what order they are in when it gets the list, it&#039;ll sort by ID before choosing a category.

This fix will be in 2.2.1 (and 2.3).

Your point about being able to choose a primary category is well taken.  This has irked me for a while (to the point where I recommend people not use category-based permalink structures).  It&#039;s not immediately obvious how the UI for such a feature would look and work without a lot of DHTML, but I&#039;ll think on the matter.</description>
		<content:encoded><![CDATA[<p>Icky bug.  <a  href="http://trac.wordpress.org/attachment/ticket/4335/cat_id_order__branches_2.2.diff?format=txt">Here is a patch for 2.2</a>.  What happened was that categories were re-ordered by name for display purposes, and that ended up choosing new primary category for category-based permalink setups as a side effect.  My patch has <code>get_permalink()</code> sort the category list by ID, so no matter what order they are in when it gets the list, it'll sort by ID before choosing a category.</p>
<p>This fix will be in 2.2.1 (and 2.3).</p>
<p>Your point about being able to choose a primary category is well taken.  This has irked me for a while (to the point where I recommend people not use category-based permalink structures).  It's not immediately obvious how the UI for such a feature would look and work without a lot of DHTML, but I'll think on the matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Schmidt</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41632</link>
		<dc:creator>Eric Schmidt</dc:creator>
		<pubDate>Fri, 25 May 2007 17:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41632</guid>
		<description>I thought I was smoking crack, couldn&#039;t figure out how I &quot;broke&quot; the category order. Thanks for the insight.</description>
		<content:encoded><![CDATA[<p>I thought I was smoking crack, couldn't figure out how I "broke" the category order. Thanks for the insight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41631</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Fri, 25 May 2007 15:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/05/25/wordpress_22_changes_category_order_behavior#comment-41631</guid>
		<description>I believe I&#039;ve worked around this - for now - by setting the categories with cat_ID of 98, 99, 100, and 101 to their negatives: -98, -99, -100, and -101. Corresponding updates to wp_post2cat were relatively easy: &lt;code&gt;UPDATE wp_post2cat set category_id = &#039;-99&#039; WHERE category_id = &#039;99&#039;&lt;/code&gt;.

I still believe this type of behavior is a bug - the behavior changed, unannounced and I believe unintended - and it certainly highlights the need for a &quot;primary&quot; category feature since categories are (often) intrinsic to URL-building in WordPress.</description>
		<content:encoded><![CDATA[<p>I believe I've worked around this - for now - by setting the categories with cat_ID of 98, 99, 100, and 101 to their negatives: -98, -99, -100, and -101. Corresponding updates to wp_post2cat were relatively easy: <code>UPDATE wp_post2cat set category_id = '-99' WHERE category_id = '99'</code>.</p>
<p>I still believe this type of behavior is a bug - the behavior changed, unannounced and I believe unintended - and it certainly highlights the need for a "primary" category feature since categories are (often) intrinsic to URL-building in WordPress.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

