<?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: Popular posts for WordPress 2.6</title>
	<atom:link href="http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/feed/" rel="self" type="application/rss+xml" />
	<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 19:51:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ram</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-65121</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Tue, 12 Oct 2010 07:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-65121</guid>
		<description>hi kilian,
great code which much helps more..
and i have doubt instead of print the whole content of the popular post how to reduce the content of the popular post?
thnx,
Ram</description>
		<content:encoded><![CDATA[<p>hi kilian,<br />
great code which much helps more..<br />
and i have doubt instead of print the whole content of the popular post how to reduce the content of the popular post?<br />
thnx,<br />
Ram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kilian Valkhof</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-9176</link>
		<dc:creator>Kilian Valkhof</dc:creator>
		<pubDate>Tue, 02 Sep 2008 11:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-9176</guid>
		<description>It does? I must&#039;ve missed that because my popular posts were from before wordpress had more revisions of one post. The solution is simple, luckily, just add 

&lt;code&gt;WHERE post_status = &quot;published&quot;&lt;/code&gt;

between the FROM and the ORDER line.</description>
		<content:encoded><![CDATA[<p>It does? I must&#8217;ve missed that because my popular posts were from before wordpress had more revisions of one post. The solution is simple, luckily, just add </p>
<p><code>WHERE post_status = "published"</code></p>
<p>between the FROM and the ORDER line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: QA</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-9173</link>
		<dc:creator>QA</dc:creator>
		<pubDate>Tue, 02 Sep 2008 08:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-9173</guid>
		<description>Well, It also lists auto saved versions of posts as well.. Any idea how to get only a list of &#039;published&#039; most popular posts?</description>
		<content:encoded><![CDATA[<p>Well, It also lists auto saved versions of posts as well.. Any idea how to get only a list of &#8216;published&#8217; most popular posts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kilian Valkhof</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-8851</link>
		<dc:creator>Kilian Valkhof</dc:creator>
		<pubDate>Wed, 20 Aug 2008 09:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-8851</guid>
		<description>Thanks for the additions, Korneel and aNieto2k!</description>
		<content:encoded><![CDATA[<p>Thanks for the additions, Korneel and aNieto2k!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aNieto2k</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-8848</link>
		<dc:creator>aNieto2k</dc:creator>
		<pubDate>Wed, 20 Aug 2008 05:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-8848</guid>
		<description>If table prefix isn&#039;t wp_ you have a problem.

You need change the SQL sentence to this.
global $wpdb;
$sql = &#039;SELECT post_title, comment_count, guid, post_date, post_content, ID
	      FROM &#039;.$wbdb-&gt;posts.&#039;
	      ORDER BY comment_count DESC
	      LIMIT 3;&#039;;

Good snippet.</description>
		<content:encoded><![CDATA[<p>If table prefix isn&#8217;t wp_ you have a problem.</p>
<p>You need change the SQL sentence to this.<br />
global $wpdb;<br />
$sql = &#8216;SELECT post_title, comment_count, guid, post_date, post_content, ID<br />
	      FROM &#8216;.$wbdb-&gt;posts.&#8217;<br />
	      ORDER BY comment_count DESC<br />
	      LIMIT 3;&#8217;;</p>
<p>Good snippet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Korneel</title>
		<link>http://kilianvalkhof.com/2008/wordpress/popular-posts-for-wordpress-26/comment-page-1/#comment-8799</link>
		<dc:creator>Korneel</dc:creator>
		<pubDate>Mon, 18 Aug 2008 08:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://kilianvalkhof.com/?p=130#comment-8799</guid>
		<description>Hey Kilian,

Nice snippet. You could improve the load time by not echo-ing each line. 
Instead, push the HTML in an array and echo a NULL-join of it after the loop. (use &quot; and \n for neat HTML).
To prevent empty NULL joins by set up the Array before the foreach().

Cheers,</description>
		<content:encoded><![CDATA[<p>Hey Kilian,</p>
<p>Nice snippet. You could improve the load time by not echo-ing each line.<br />
Instead, push the HTML in an array and echo a NULL-join of it after the loop. (use &#8221; and \n for neat HTML).<br />
To prevent empty NULL joins by set up the Array before the foreach().</p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

