<?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: Category Posts Widget 2.0</title>
	<atom:link href="http://jameslao.com/2009/07/29/category-posts-widget-2-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/</link>
	<description>It&#039;s just software.</description>
	<lastBuildDate>Sun, 26 Feb 2012 15:31:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Shahz</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7680</link>
		<dc:creator>Shahz</dc:creator>
		<pubDate>Fri, 04 Dec 2009 11:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7680</guid>
		<description>I changed this line:

$cat_posts = new WP_Query(&quot;showposts=&quot; . $instance[&quot;num&quot;] . &quot;&amp;cat=&quot; . $instance[&quot;cat&quot;]);

to this:
$cat_posts = new WP_Query(&quot;showposts=&quot; . $instance[&quot;num&quot;] . &quot;&amp;cat=&quot; . $instance[&quot;cat&quot;] . &quot;&amp;orderby=id&amp;order=asc&quot;);

And that gave me order using ids in ascending..Just in case someone was seeking for the answer :)</description>
		<content:encoded><![CDATA[<p>I changed this line:</p>
<p>$cat_posts = new WP_Query(&#8220;showposts=&#8221; . $instance["num"] . &#8220;&amp;cat=&#8221; . $instance["cat"]);</p>
<p>to this:<br />
$cat_posts = new WP_Query(&#8220;showposts=&#8221; . $instance["num"] . &#8220;&amp;cat=&#8221; . $instance["cat"] . &#8220;&amp;orderby=id&amp;order=asc&#8221;);</p>
<p>And that gave me order using ids in ascending..Just in case someone was seeking for the answer <img src='http://jameslao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7679</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Fri, 04 Dec 2009 04:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7679</guid>
		<description>oops, that while statement is:

	while ( $post_count &lt; $instance[&quot;num&quot;]) : $cat_posts-&gt;the_post(); 

Sorry ...</description>
		<content:encoded><![CDATA[<p>oops, that while statement is:</p>
<p>	while ( $post_count &lt; $instance["num"]) : $cat_posts-&gt;the_post(); </p>
<p>Sorry &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7678</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Fri, 04 Dec 2009 04:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7678</guid>
		<description>Hi James - Thanks for the plugin. I came across a situation I needed but it doesn&#039;t cover, so I will give you the fix.

I have a category archive page, using wp-pagenavi to o handle paging.

My theme is based on the carrington-blog theme, at least the part which handles the archives page.

I also have your widget on that page, displaying items in the same category.

For reasons I haven&#039;t been able to figure out, your plugin uses the value of &quot;posts per page&quot; set in the theme settings admin page. I would like your plugin to use its own setting of course for the number of posts to display.

This may be due to a filter or something I am not aware of, but I have a work around for you.

First, set the query in your plugin to have nopaging=1:

	// Get array of post info.

	$cat_posts = new WP_Query(&quot;posts_per_page=&quot; . $instance[&quot;num&quot;] . &quot;&amp;cat=&quot; . $instance[&quot;cat&quot;]. &quot;&amp;nopaging=1&quot;);


This will actually ignore the number of posts, but the next piece of code fixes that.

We change the loop structure in the plugin to:

        $post_count = 0;

	while ( $post_count the_post(); 


....

            $post_count++;

	endwhile;


That&#039;s it!

Even without my theme/plugin combo, it should still work as before. But with the combo, it still works!

So please consider adding this to the next version, users of complex magazine style themes will thank you! :)</description>
		<content:encoded><![CDATA[<p>Hi James &#8211; Thanks for the plugin. I came across a situation I needed but it doesn&#8217;t cover, so I will give you the fix.</p>
<p>I have a category archive page, using wp-pagenavi to o handle paging.</p>
<p>My theme is based on the carrington-blog theme, at least the part which handles the archives page.</p>
<p>I also have your widget on that page, displaying items in the same category.</p>
<p>For reasons I haven&#8217;t been able to figure out, your plugin uses the value of &#8220;posts per page&#8221; set in the theme settings admin page. I would like your plugin to use its own setting of course for the number of posts to display.</p>
<p>This may be due to a filter or something I am not aware of, but I have a work around for you.</p>
<p>First, set the query in your plugin to have nopaging=1:</p>
<p>	// Get array of post info.</p>
<p>	$cat_posts = new WP_Query(&#8220;posts_per_page=&#8221; . $instance["num"] . &#8220;&amp;cat=&#8221; . $instance["cat"]. &#8220;&amp;nopaging=1&#8243;);</p>
<p>This will actually ignore the number of posts, but the next piece of code fixes that.</p>
<p>We change the loop structure in the plugin to:</p>
<p>        $post_count = 0;</p>
<p>	while ( $post_count the_post(); </p>
<p>&#8230;.</p>
<p>            $post_count++;</p>
<p>	endwhile;</p>
<p>That&#8217;s it!</p>
<p>Even without my theme/plugin combo, it should still work as before. But with the combo, it still works!</p>
<p>So please consider adding this to the next version, users of complex magazine style themes will thank you! <img src='http://jameslao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn Chinese Online</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7677</link>
		<dc:creator>Learn Chinese Online</dc:creator>
		<pubDate>Thu, 03 Dec 2009 15:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7677</guid>
		<description>Hi 

Thanks for this plugin.  It&#039;s exactly what I was looking for.

However, is it possible to display the posts in REVERSE chronological order starting with the oldest ?  I would really LOVE that feature

In fact, it&#039;s available in another similar plugin.  The only problem with that plugin is it only allows 1 widget whereas yours seems to be unlimited</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Thanks for this plugin.  It&#8217;s exactly what I was looking for.</p>
<p>However, is it possible to display the posts in REVERSE chronological order starting with the oldest ?  I would really LOVE that feature</p>
<p>In fact, it&#8217;s available in another similar plugin.  The only problem with that plugin is it only allows 1 widget whereas yours seems to be unlimited</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7676</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 03 Dec 2009 13:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7676</guid>
		<description>Thanks, great plugin. I need to make one slight amendment to it. I want to create a tabbed sidebar with three categories. I want to be able to only show posts for the selected category in the side bar when you click on the current tab. 
By default the widget allows you to choose a default category to show but you cannot change the list of posts that appear in the sidebar. I want it to change the list of posts when you select a different category tab in the sidebar. Hope this makes sense.</description>
		<content:encoded><![CDATA[<p>Thanks, great plugin. I need to make one slight amendment to it. I want to create a tabbed sidebar with three categories. I want to be able to only show posts for the selected category in the side bar when you click on the current tab.<br />
By default the widget allows you to choose a default category to show but you cannot change the list of posts that appear in the sidebar. I want it to change the list of posts when you select a different category tab in the sidebar. Hope this makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7672</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 03 Dec 2009 02:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7672</guid>
		<description>Would like to have the posts listed alphabetically rather than having the most recent at the top. Any way to configure for this display order?

Great plugin otherwise! (Almost) exactly what I needed!</description>
		<content:encoded><![CDATA[<p>Would like to have the posts listed alphabetically rather than having the most recent at the top. Any way to configure for this display order?</p>
<p>Great plugin otherwise! (Almost) exactly what I needed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Horsley</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7668</link>
		<dc:creator>Ron Horsley</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7668</guid>
		<description>Yeah, I&#039;d really like to use this for a WP site&#039;s sidebar, but I don&#039;t want the widget as it&#039;s currently done (because too much WP&#039;s CSS is now dedicated to other areas of the site that look wrong when I just drop the widget in as-is). I have my own unique-styled div all ready to house it.  What is the PHP code I can just drop into the sidebar.php page inside the  to call up the function?  I just want the top 3 headlines to display in my div from the &quot;Blog&quot; category.  Thanks.</description>
		<content:encoded><![CDATA[<p>Yeah, I&#8217;d really like to use this for a WP site&#8217;s sidebar, but I don&#8217;t want the widget as it&#8217;s currently done (because too much WP&#8217;s CSS is now dedicated to other areas of the site that look wrong when I just drop the widget in as-is). I have my own unique-styled div all ready to house it.  What is the PHP code I can just drop into the sidebar.php page inside the  to call up the function?  I just want the top 3 headlines to display in my div from the &#8220;Blog&#8221; category.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lightsurgery</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7662</link>
		<dc:creator>lightsurgery</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7662</guid>
		<description>Hi, this is a really simple and cool plugin and is just what I need.
Only thing is that it seems only to show one image for all the diferent categories.
I use the widget 4 times in one place (to show 1 post from each of four categories) and it shows the same image that I uploaded in one category for each of the others.
Any ideas on how to fix?

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi, this is a really simple and cool plugin and is just what I need.<br />
Only thing is that it seems only to show one image for all the diferent categories.<br />
I use the widget 4 times in one place (to show 1 post from each of four categories) and it shows the same image that I uploaded in one category for each of the others.<br />
Any ideas on how to fix?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: game</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7657</link>
		<dc:creator>game</dc:creator>
		<pubDate>Sat, 28 Nov 2009 15:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7657</guid>
		<description>Thanks for plugin. It very nice.I will try.</description>
		<content:encoded><![CDATA[<p>Thanks for plugin. It very nice.I will try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sure Fire Way To Lower Bounce Rates &#124; ocondesign</title>
		<link>http://jameslao.com/2009/07/29/category-posts-widget-2-0/comment-page-2/#comment-7651</link>
		<dc:creator>Sure Fire Way To Lower Bounce Rates &#124; ocondesign</dc:creator>
		<pubDate>Sat, 28 Nov 2009 01:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://jameslao.com/?p=317#comment-7651</guid>
		<description>[...] deemed useful or informative. The hardest part was finding a decent plugin that worked well. I used Category Posts Widget 2.0. It allows you to showcase a specific category.  It’s great because it gave me total control [...]</description>
		<content:encoded><![CDATA[<p>[...] deemed useful or informative. The hardest part was finding a decent plugin that worked well. I used Category Posts Widget 2.0. It allows you to showcase a specific category.  It’s great because it gave me total control [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

