<?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: Sort by Comments</title>
	<atom:link href="http://hemmeligadresse.com/kode/sort-by-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://hemmeligadresse.com</link>
	<description>Når alt annet feiler</description>
	<lastBuildDate>Thu, 11 Mar 2010 16:16:24 +0200</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thomas Misund</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2886</link>
		<dc:creator>Thomas Misund</dc:creator>
		<pubDate>Sun, 02 Aug 2009 22:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2886</guid>
		<description>&lt;a href=&quot;http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/&quot; rel=&quot;nofollow&quot;&gt;Here is some useful information&lt;/a&gt; about threaded comments. You could probably use it to alter the plugin to be compatible with threaded comments.</description>
		<content:encoded><![CDATA[<p><a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/" rel="nofollow">Here is some useful information</a> about threaded comments. You could probably use it to alter the plugin to be compatible with threaded comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2885</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 02 Aug 2009 17:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2885</guid>
		<description>Works like a champ, thanks for your reply.

Any thoughts on how I could replace the &quot;reply to this&quot; link with a link that would let me reply to the LAST comment instead of to the top post?</description>
		<content:encoded><![CDATA[<p>Works like a champ, thanks for your reply.</p>
<p>Any thoughts on how I could replace the &#8220;reply to this&#8221; link with a link that would let me reply to the LAST comment instead of to the top post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitkahuna</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2884</link>
		<dc:creator>bitkahuna</dc:creator>
		<pubDate>Sun, 02 Aug 2009 16:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2884</guid>
		<description>yes john, just replace the original $wp_query line you posted with my few lines.</description>
		<content:encoded><![CDATA[<p>yes john, just replace the original $wp_query line you posted with my few lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2883</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 02 Aug 2009 15:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2883</guid>
		<description>I am experiencing the ghost post problem described above as well - this fix sounds good, but where do I cut and paste the code? 

Currently the plugin reads:

// Fool WP to believe it only has a given amount of posts, so that it doesn&#039;t display a million posts on the front page
			$wp_query-&gt;post_count=get_option(&#039;posts_per_page&#039;);
			

Do I replace this with the code provided by bitkahuna? Do I add to it? I tried a few things but keep getting fatal errors in WP.

2nd question - pluging lists &quot;view all replies&quot; and &quot;reply to this&quot; link below the post. Handy, but I would like the reply to this link to actually lead to a reply on that LAST comment. Right now, it just creates a top-level comment but that&#039;s already offered by the &quot;reply to&quot; link in P2. Is there a simple fix?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I am experiencing the ghost post problem described above as well &#8211; this fix sounds good, but where do I cut and paste the code? </p>
<p>Currently the plugin reads:</p>
<p>// Fool WP to believe it only has a given amount of posts, so that it doesn&#8217;t display a million posts on the front page<br />
			$wp_query-&gt;post_count=get_option(&#8216;posts_per_page&#8217;);</p>
<p>Do I replace this with the code provided by bitkahuna? Do I add to it? I tried a few things but keep getting fatal errors in WP.</p>
<p>2nd question &#8211; pluging lists &#8220;view all replies&#8221; and &#8220;reply to this&#8221; link below the post. Handy, but I would like the reply to this link to actually lead to a reply on that LAST comment. Right now, it just creates a top-level comment but that&#8217;s already offered by the &#8220;reply to&#8221; link in P2. Is there a simple fix?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Misund</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2878</link>
		<dc:creator>Thomas Misund</dc:creator>
		<pubDate>Thu, 30 Jul 2009 20:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2878</guid>
		<description>I&#039;m glad you could sort it out! Thanks for sharing the fix.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you could sort it out! Thanks for sharing the fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitkahuna</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2877</link>
		<dc:creator>bitkahuna</dc:creator>
		<pubDate>Thu, 30 Jul 2009 02:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2877</guid>
		<description>thanks very much, but i found the bug, and it&#039;s not what i thought it might be above.

the problem is where you try to &#039;fool&#039; wp into only displaying the posts per page - if there&#039;s LESS posts in the blog than posts per page, you&#039;re still telling it to display posts per page number.  so my fix:

&lt;code&gt;&lt;pre&gt;// only do this if there&#039;s more posts in the blog that posts per page
$ppp = get_option(&#039;posts_per_page&#039;);
if (count($posts) &gt; $ppp) {
    $wp_query-&gt;post_count=$ppp;
}&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>thanks very much, but i found the bug, and it&#8217;s not what i thought it might be above.</p>
<p>the problem is where you try to &#8216;fool&#8217; wp into only displaying the posts per page &#8211; if there&#8217;s LESS posts in the blog than posts per page, you&#8217;re still telling it to display posts per page number.  so my fix:</p>
<p><code>
<pre>// only do this if there's more posts in the blog that posts per page
$ppp = get_option('posts_per_page');
if (count($posts) &gt; $ppp) {
    $wp_query-&gt;post_count=$ppp;
}</pre>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Misund</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2873</link>
		<dc:creator>Thomas Misund</dc:creator>
		<pubDate>Mon, 27 Jul 2009 10:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2873</guid>
		<description>Try something like &lt;a href=&quot;http://pastebin.com/f5e703bbc&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; (I haven&#039;t tested it, so you might have to debug it or do something else) from somewhere around line 42.</description>
		<content:encoded><![CDATA[<p>Try something like <a href="http://pastebin.com/f5e703bbc" rel="nofollow">this</a> (I haven&#8217;t tested it, so you might have to debug it or do something else) from somewhere around line 42.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitkahuna</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2872</link>
		<dc:creator>bitkahuna</dc:creator>
		<pubDate>Mon, 27 Jul 2009 07:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2872</guid>
		<description>oops, i wanted to get notified so have to leave another comment, sorry. :-}</description>
		<content:encoded><![CDATA[<p>oops, i wanted to get notified so have to leave another comment, sorry. :-}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitkahuna</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2871</link>
		<dc:creator>bitkahuna</dc:creator>
		<pubDate>Mon, 27 Jul 2009 07:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2871</guid>
		<description>on wp 2.8 your plug-in APPEARS to be showing post entries corresponding to pages too (all of which are in the same table).  trying to figure out how to fix it...</description>
		<content:encoded><![CDATA[<p>on wp 2.8 your plug-in APPEARS to be showing post entries corresponding to pages too (all of which are in the same table).  trying to figure out how to fix it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Misund</title>
		<link>http://hemmeligadresse.com/kode/sort-by-comments/comment-page-1/#comment-2856</link>
		<dc:creator>Thomas Misund</dc:creator>
		<pubDate>Mon, 13 Jul 2009 00:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://thomas.hemmeligadresse.com//sort-by-comments/#comment-2856</guid>
		<description>I&#039;m not quite sure I understand what it is that you want to do. Could you rephrase the question?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not quite sure I understand what it is that you want to do. Could you rephrase the question?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
