<?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: Grouping WordPress Posts by Month</title>
	<atom:link href="http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/feed/" rel="self" type="application/rss+xml" />
	<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 22 May 2010 16:47:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: tboley</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-525</link>
		<dc:creator>tboley</dc:creator>
		<pubDate>Sat, 22 May 2010 16:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-525</guid>
		<description>Many thanks for this snippet of code! I used it with some modifications in my upcoming theme. With currently 4,700 posts I set a limit for the query. The use of WP_Cache seems to be useful, too.</description>
		<content:encoded><![CDATA[<p>Many thanks for this snippet of code! I used it with some modifications in my upcoming theme. With currently 4,700 posts I set a limit for the query. The use of WP_Cache seems to be useful, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Brown</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-101</link>
		<dc:creator>Andrew Brown</dc:creator>
		<pubDate>Mon, 22 Feb 2010 06:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-101</guid>
		<description>I think you&#039;d have to write a big ugly join to do what you want to do. You&#039;ll need to do some googling, not sure what to do for that.</description>
		<content:encoded><![CDATA[<p>I think you&#8217;d have to write a big ugly join to do what you want to do. You&#8217;ll need to do some googling, not sure what to do for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-100</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 21 Feb 2010 19:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-100</guid>
		<description>If I wanted to sort by a single category how would I append that functionality to this snippet?

I&#039;ve created an SQL query to get the category ID: 
&lt;pre lang=&quot;php&quot;&gt;
$cat = $wpdb-&gt;get_results(&quot;SELECT term_id AS category FROM $wpdb-&gt;terms WHERE name = &#039;Bookmarks&#039;&quot;);
&lt;/pre&gt;
BUT

I can&#039;t figure out how to test if the posts are sorted under that category.

If I&#039;m being vague, I can offer more detail information.</description>
		<content:encoded><![CDATA[<p>If I wanted to sort by a single category how would I append that functionality to this snippet?</p>
<p>I&#8217;ve created an SQL query to get the category ID:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$cat</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT term_id AS category FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span> WHERE name = 'Bookmarks'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>BUT</p>
<p>I can&#8217;t figure out how to test if the posts are sorted under that category.</p>
<p>If I&#8217;m being vague, I can offer more detail information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Davis</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-10</link>
		<dc:creator>Joshua Davis</dc:creator>
		<pubDate>Thu, 20 Aug 2009 22:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-10</guid>
		<description>works great... but can you isolate this filter by category - seems like you can add something to $posts to filter a specific category?

thanks for any help,</description>
		<content:encoded><![CDATA[<p>works great&#8230; but can you isolate this filter by category &#8211; seems like you can add something to $posts to filter a specific category?</p>
<p>thanks for any help,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-8</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-8</guid>
		<description>Hi - thanks for this, it&#039;s been a huge help.

Is there a way of excluding posts from a particular category (or I guess only including posts from a specific category0 ? I&#039;ve played with the code but my skill/experience levels just aren&#039;t up to it.

any help or suggestions would be much appreciated

Steve</description>
		<content:encoded><![CDATA[<p>Hi &#8211; thanks for this, it&#8217;s been a huge help.</p>
<p>Is there a way of excluding posts from a particular category (or I guess only including posts from a specific category0 ? I&#8217;ve played with the code but my skill/experience levels just aren&#8217;t up to it.</p>
<p>any help or suggestions would be much appreciated</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tamilsweet</title>
		<link>http://monsterboxpro.com/blog/2009/07/20/grouping-wordpress-posts-by-month/comment-page-1/#comment-2</link>
		<dc:creator>tamilsweet</dc:creator>
		<pubDate>Thu, 23 Jul 2009 01:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://monsterboxpro.com/blog/?p=5#comment-2</guid>
		<description>Thanks :-)
I managed to find this and copy &amp; paste for my requirement.</description>
		<content:encoded><![CDATA[<p>Thanks <img src='http://monsterboxpro.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
I managed to find this and copy &amp; paste for my requirement.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

