<?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: How to Sort Category Archive Posts by Subcategory</title>
	<atom:link href="http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/</link>
	<description>a blog of creativity</description>
	<lastBuildDate>Thu, 11 Mar 2010 08:09:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Soriano</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-7779</link>
		<dc:creator>Michael Soriano</dc:creator>
		<pubDate>Thu, 03 Dec 2009 06:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-7779</guid>
		<description>works as described! check out what i did with your code: http://jakesrh.net/category/2lunch-and-dinner/

thanks again!</description>
		<content:encoded><![CDATA[<p>works as described! check out what i did with your code: <a href="http://jakesrh.net/category/2lunch-and-dinner/" rel="nofollow">http://jakesrh.net/category/2lunch-and-dinner/</a></p>
<p>thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hélène</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-6696</link>
		<dc:creator>Hélène</dc:creator>
		<pubDate>Wed, 28 Oct 2009 11:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-6696</guid>
		<description>Works Great ! Thank you !</description>
		<content:encoded><![CDATA[<p>Works Great ! Thank you !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash Haque</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-6169</link>
		<dc:creator>Ash Haque</dc:creator>
		<pubDate>Mon, 05 Oct 2009 10:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-6169</guid>
		<description>Exactly what I was looking for! Cheers</description>
		<content:encoded><![CDATA[<p>Exactly what I was looking for! Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-5734</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Mon, 21 Sep 2009 17:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-5734</guid>
		<description>It&#039;s amazing that there are subcategories in Wordpress yet no easy way to organize them intuitively. 

Thanks for your code. If I understand properly from the Wordpress Codex&#039;s explanation of query_posts, it sounds like a new database query is being generated each time it&#039;s called. So by wrapping it in a foreach loop, you have n queries on that page. If there are only a couple subcategories, not necessarily a big deal. But for sites with a ton of subcategories, this could be an issue.</description>
		<content:encoded><![CDATA[<p>It&#8217;s amazing that there are subcategories in Wordpress yet no easy way to organize them intuitively. </p>
<p>Thanks for your code. If I understand properly from the Wordpress Codex&#8217;s explanation of query_posts, it sounds like a new database query is being generated each time it&#8217;s called. So by wrapping it in a foreach loop, you have n queries on that page. If there are only a couple subcategories, not necessarily a big deal. But for sites with a ton of subcategories, this could be an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro Oliveira</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-5272</link>
		<dc:creator>Pedro Oliveira</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-5272</guid>
		<description>Ok, already figured it out using &quot;category__and&quot; syntax. If anyone is interested I can post how I did it :)</description>
		<content:encoded><![CDATA[<p>Ok, already figured it out using &#8220;category__and&#8221; syntax. If anyone is interested I can post how I did it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro Oliveira</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-5202</link>
		<dc:creator>Pedro Oliveira</dc:creator>
		<pubDate>Sun, 06 Sep 2009 19:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-5202</guid>
		<description>Thank you so much for this, it works perfectly... BUT, I have a question... I don&#039;t know if it is dummy, but I can&#039;t figure it out by myself...

I have two &quot;classes&quot; of categories in my theme... and I want to do this sort, but only show the posts included in other class as well. For instance:

I have two parent categories: &quot;Projects&quot; and &quot;Levels&quot;. I have a bunch of posts which are associated with one Project but also with many Levels. I want that, when viewing a Project page (meaning the category page of the project), it organizes the content by the categories that are children of &quot;Levels&quot;. So, it will only show the children of Levels that are associated with an specific Project. Did I make myself clear enough?

Any help would be appreciated!</description>
		<content:encoded><![CDATA[<p>Thank you so much for this, it works perfectly&#8230; BUT, I have a question&#8230; I don&#8217;t know if it is dummy, but I can&#8217;t figure it out by myself&#8230;</p>
<p>I have two &#8220;classes&#8221; of categories in my theme&#8230; and I want to do this sort, but only show the posts included in other class as well. For instance:</p>
<p>I have two parent categories: &#8220;Projects&#8221; and &#8220;Levels&#8221;. I have a bunch of posts which are associated with one Project but also with many Levels. I want that, when viewing a Project page (meaning the category page of the project), it organizes the content by the categories that are children of &#8220;Levels&#8221;. So, it will only show the children of Levels that are associated with an specific Project. Did I make myself clear enough?</p>
<p>Any help would be appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marie</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-5076</link>
		<dc:creator>Marie</dc:creator>
		<pubDate>Thu, 03 Sep 2009 05:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-5076</guid>
		<description>Thank you so SO much for this. I needed to do exactly this. but couldn&#039;t figure out for the life of me how to do it. I was mentally rehearsing the speech I was going to give to my client to explain why I was going to miss my deadline when I found this. Speech abandoned, problem solved.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thank you so SO much for this. I needed to do exactly this. but couldn&#8217;t figure out for the life of me how to do it. I was mentally rehearsing the speech I was going to give to my client to explain why I was going to miss my deadline when I found this. Speech abandoned, problem solved.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ann</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-3723</link>
		<dc:creator>ann</dc:creator>
		<pubDate>Sun, 19 Jul 2009 11:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-3723</guid>
		<description>Thanks, that helps quite a lot. 

But you are right, it is a bit confusing. Anyway, I am the only one to blame for. I shouldn&#039;t have organized my posts by subsubcats. It is just a whole mess.

Thanks for the ideas you are sharing.
Ann</description>
		<content:encoded><![CDATA[<p>Thanks, that helps quite a lot. </p>
<p>But you are right, it is a bit confusing. Anyway, I am the only one to blame for. I shouldn&#8217;t have organized my posts by subsubcats. It is just a whole mess.</p>
<p>Thanks for the ideas you are sharing.<br />
Ann</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tommy</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-3676</link>
		<dc:creator>tommy</dc:creator>
		<pubDate>Tue, 14 Jul 2009 15:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-3676</guid>
		<description>@ann

It would get confusing pretty fast, but I don&#039;t see why you couldn&#039;t do that. I&#039;ll leave it up to you to write the code.

After you&#039;ve pulled in the child categories (Line 1) and are going through them with &quot;for each&quot;, pull in each consecutive subcat&#039;s subsubcat&#039;s with the same code, switching out the variables so they don&#039;t overwrite.

If you could wrap your head around it, you could probably write some logic that checks each cat for subcats and automatically pulls out the whole tree, as deep as is needed in the hierarchy, maybe set by a variable. Hell, put the whole thing in a function.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@ann</p>
<p>It would get confusing pretty fast, but I don&#8217;t see why you couldn&#8217;t do that. I&#8217;ll leave it up to you to write the code.</p>
<p>After you&#8217;ve pulled in the child categories (Line 1) and are going through them with &#8220;for each&#8221;, pull in each consecutive subcat&#8217;s subsubcat&#8217;s with the same code, switching out the variables so they don&#8217;t overwrite.</p>
<p>If you could wrap your head around it, you could probably write some logic that checks each cat for subcats and automatically pulls out the whole tree, as deep as is needed in the hierarchy, maybe set by a variable. Hell, put the whole thing in a function.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ann</title>
		<link>http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/comment-page-1/#comment-3669</link>
		<dc:creator>ann</dc:creator>
		<pubDate>Tue, 14 Jul 2009 01:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://iamnotagoodartist.com/?p=581#comment-3669</guid>
		<description>Thanks, great, that&#039;s exactly what I was looking for. Just one question, is ist possible to start a new array after the div-tag &quot;genre_subcat&quot;?  
...  Let&#039;s say: The categories and posts are organized as followed:  Music -&gt; Rock -&gt; Australian -&gt; “The History of AC/DC” 
So that the subcat Rock has its own subcat Australian.</description>
		<content:encoded><![CDATA[<p>Thanks, great, that&#8217;s exactly what I was looking for. Just one question, is ist possible to start a new array after the div-tag &#8220;genre_subcat&#8221;?<br />
&#8230;  Let&#8217;s say: The categories and posts are organized as followed:  Music -&gt; Rock -&gt; Australian -&gt; “The History of AC/DC”<br />
So that the subcat Rock has its own subcat Australian.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
