<?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: Show Popular Posts in WordPress &#8211; without a plugin</title>
	<atom:link href="http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 07 Feb 2012 11:01:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: @realpb</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-7115</link>
		<dc:creator>@realpb</dc:creator>
		<pubDate>Wed, 27 Jul 2011 04:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-7115</guid>
		<description>thanks. you rock.</description>
		<content:encoded><![CDATA[<p>thanks. you rock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: igi</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-6806</link>
		<dc:creator>igi</dc:creator>
		<pubDate>Thu, 16 Jun 2011 01:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-6806</guid>
		<description>EXCELLENT!!!</description>
		<content:encoded><![CDATA[<p>EXCELLENT!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vera Rorato</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-4698</link>
		<dc:creator>Vera Rorato</dc:creator>
		<pubDate>Tue, 28 Dec 2010 16:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-4698</guid>
		<description>Hi! I&#039;m trying to get a code to put on a page of the most commentes post! I find this tutorial, but I had already tested this code, and it just works on themes files, not in page, even using a plugin that enables php on pages...

Can you help me find a code that I could use on pages?</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;m trying to get a code to put on a page of the most commentes post! I find this tutorial, but I had already tested this code, and it just works on themes files, not in page, even using a plugin that enables php on pages&#8230;</p>
<p>Can you help me find a code that I could use on pages?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Livio</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2990</link>
		<dc:creator>Livio</dc:creator>
		<pubDate>Wed, 15 Sep 2010 06:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2990</guid>
		<description>Hi Binny, thanx for the code, its great</description>
		<content:encoded><![CDATA[<p>Hi Binny, thanx for the code, its great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2687</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 29 Mar 2010 20:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2687</guid>
		<description>Opps sory here the structure of my category:
&lt;code&gt;
Videos (ID12)
–&gt;Activities
  –&gt;Bike
  –&gt;Swimming
  –&gt;Horse Riding
–&gt;Movie (ID13)
  –&gt;Action
  –&gt;Romance
–&gt;Song (ID14)
  –&gt;Techno
  –&gt;Hip Hop
Home (ID15)
Others categories… (ID...)
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Opps sory here the structure of my category:<br />
<code><br />
Videos (ID12)<br />
–&gt;Activities<br />
  –&gt;Bike<br />
  –&gt;Swimming<br />
  –&gt;Horse Riding<br />
–&gt;Movie (ID13)<br />
  –&gt;Action<br />
  –&gt;Romance<br />
–&gt;Song (ID14)<br />
  –&gt;Techno<br />
  –&gt;Hip Hop<br />
Home (ID15)<br />
Others categories… (ID...)<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2686</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 29 Mar 2010 20:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2686</guid>
		<description>Really nice exemple!

May I ask you something I didnt find anywere. You will be my savior if you can answer me :)

What I want is to make a query who can show most popular post from a specific category and his sub-categories only.

Here a example of what I&#039;m trying to do.

Videos
 --&gt;Activities
    --&gt;Bike
    --&gt;Swimming
    --&gt;Horse Riding
 --&gt;Movie
    --&gt;Action
    --&gt;Romance
 --&gt;Song
    --&gt;Techno
    --&gt;Hip Hop
Home
Others categories...

So what I want to do is to build a query who will show post made in the videos category (including all his subcategories, sub-sub categories, etc)

I see you already answer my first question (how to show top 10 popular post) now how can we specify the parent category and all his childrens as limit?

I see a lot of plugin who can exclude certain category, but that not the way I want it... I wish some one may have the answer :)

Thx in advance!</description>
		<content:encoded><![CDATA[<p>Really nice exemple!</p>
<p>May I ask you something I didnt find anywere. You will be my savior if you can answer me <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What I want is to make a query who can show most popular post from a specific category and his sub-categories only.</p>
<p>Here a example of what I&#8217;m trying to do.</p>
<p>Videos<br />
 &#8211;&gt;Activities<br />
    &#8211;&gt;Bike<br />
    &#8211;&gt;Swimming<br />
    &#8211;&gt;Horse Riding<br />
 &#8211;&gt;Movie<br />
    &#8211;&gt;Action<br />
    &#8211;&gt;Romance<br />
 &#8211;&gt;Song<br />
    &#8211;&gt;Techno<br />
    &#8211;&gt;Hip Hop<br />
Home<br />
Others categories&#8230;</p>
<p>So what I want to do is to build a query who will show post made in the videos category (including all his subcategories, sub-sub categories, etc)</p>
<p>I see you already answer my first question (how to show top 10 popular post) now how can we specify the parent category and all his childrens as limit?</p>
<p>I see a lot of plugin who can exclude certain category, but that not the way I want it&#8230; I wish some one may have the answer <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thx in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2420</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 07 Nov 2009 00:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2420</guid>
		<description>Great tip!  I would add the improvement since all pages, revisions and posts are stored in the wp_posts table.  Update the MYSQL statement to be this:
&lt;code&gt;
$popular_posts = $wpdb-&gt;get_results(&quot;SELECT id,post_title FROM {$wpdb-&gt;prefix}posts WHERE post_status = &#039;publish&#039; AND post_type = &#039;post&#039; ORDER BY comment_count DESC LIMIT 0,10&quot;);
&lt;/code&gt;

This narrows the results to ONLY posts, not pages, and only those posts that are published, not just saved revisions.

Cheers!
Brian</description>
		<content:encoded><![CDATA[<p>Great tip!  I would add the improvement since all pages, revisions and posts are stored in the wp_posts table.  Update the MYSQL statement to be this:<br />
<code><br />
$popular_posts = $wpdb-&gt;get_results("SELECT id,post_title FROM {$wpdb-&gt;prefix}posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY comment_count DESC LIMIT 0,10");<br />
</code></p>
<p>This narrows the results to ONLY posts, not pages, and only those posts that are published, not just saved revisions.</p>
<p>Cheers!<br />
Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Otto Rask</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2419</link>
		<dc:creator>Otto Rask</dc:creator>
		<pubDate>Fri, 06 Nov 2009 10:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2419</guid>
		<description>Thanks for posting, I was leaning towards this technique and your post made me choose it. Although I wish this could be expanded to take a some sort of an average between views and comments... I need to research a bit more, maybe make a post about it if I get it working. :)</description>
		<content:encoded><![CDATA[<p>Thanks for posting, I was leaning towards this technique and your post made me choose it. Although I wish this could be expanded to take a some sort of an average between views and comments&#8230; I need to research a bit more, maybe make a post about it if I get it working. <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2281</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Sat, 29 Aug 2009 13:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2281</guid>
		<description>Great! I&#039;ve tried it on of my blogs.</description>
		<content:encoded><![CDATA[<p>Great! I&#8217;ve tried it on of my blogs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/comment-page-1/#comment-2053</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 02 Aug 2009 05:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240#comment-2053</guid>
		<description>Wow, great tip. I am gonna try to implement it on my site. Thanks!</description>
		<content:encoded><![CDATA[<p>Wow, great tip. I am gonna try to implement it on my site. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

