<?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: Paginated comments with WordPress 2.7 and the Copyblogger theme</title>
	<atom:link href="http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/</link>
	<description>Writing about my experiences with technology and all different kinds of projects and experiments</description>
	<lastBuildDate>Fri, 30 Jul 2010 04:19:58 +0200</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-8743</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Thu, 09 Jul 2009 14:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-8743</guid>
		<description>Hi Johny,
no, I haven&#039;t but I can help you to implement it in your site.

Basically, you&#039;ll have to replace the output of your comments in your theme&#039;s comments.php with a call to &quot;wp_list_comments&quot;. The &quot;Previous&quot; and &quot;Next&quot; links are displayed by &quot;previous_comments_link&quot; and &quot;next_comments_link&quot; respectively. It&#039;s as easy as that.

If you need more help with this just &lt;a href=&quot;/contact/&quot; rel=&quot;nofollow&quot;&gt;contact&lt;/a&gt; me.</description>
		<content:encoded><![CDATA[<p>Hi Johny,<br />
no, I haven&#8217;t but I can help you to implement it in your site.</p>
<p>Basically, you&#8217;ll have to replace the output of your comments in your theme&#8217;s comments.php with a call to &#8220;wp_list_comments&#8221;. The &#8220;Previous&#8221; and &#8220;Next&#8221; links are displayed by &#8220;previous_comments_link&#8221; and &#8220;next_comments_link&#8221; respectively. It&#8217;s as easy as that.</p>
<p>If you need more help with this just <a href="/contact/">contact</a> me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johny Retsambew</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-8741</link>
		<dc:creator>Johny Retsambew</dc:creator>
		<pubDate>Thu, 09 Jul 2009 10:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-8741</guid>
		<description>Hi Christ, do you have any tutorial to make paginated comments in different WP themes? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Christ, do you have any tutorial to make paginated comments in different WP themes? Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-8668</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Sun, 05 Jul 2009 09:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-8668</guid>
		<description>Hi Phil,
it&#039;s great to hear that it worked for you too. Sure, you can end up with a broken page if you make a mistake here. I recommend using a recent version of All in one SEO pack which supports canonical links.</description>
		<content:encoded><![CDATA[<p>Hi Phil,<br />
it&#8217;s great to hear that it worked for you too. Sure, you can end up with a broken page if you make a mistake here. I recommend using a recent version of All in one SEO pack which supports canonical links.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-8659</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sat, 04 Jul 2009 20:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-8659</guid>
		<description>Hi Christian Schenk,

Thanks for the code, it worked. Now any page in my blog have a unique title and description. But someone need to be very careful when editing the files, or you can broke your site.

Again, thanks.</description>
		<content:encoded><![CDATA[<p>Hi Christian Schenk,</p>
<p>Thanks for the code, it worked. Now any page in my blog have a unique title and description. But someone need to be very careful when editing the files, or you can broke your site.</p>
<p>Again, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amaury</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-6184</link>
		<dc:creator>Amaury</dc:creator>
		<pubDate>Thu, 26 Mar 2009 13:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-6184</guid>
		<description>Christian, you can update the title value before the SEO Plugin.
Try my plugin &lt;a href=&quot;http://www.herewithme.fr/wp-content/uploads/2009/03/simple-seo-paged-comments.phps&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Christian, you can update the title value before the SEO Plugin.<br />
Try my plugin <a href="http://www.herewithme.fr/wp-content/uploads/2009/03/simple-seo-paged-comments.phps">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malcolm coles</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-4760</link>
		<dc:creator>malcolm coles</dc:creator>
		<pubDate>Wed, 21 Jan 2009 17:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-4760</guid>
		<description>Yes, it was a fairly big issue that the method I came up with didn&#039;t work with AIOSEO pack (I must get round to installing it one day rather than dreaming up hacks!). Anyway, excellent work in editing the plugin. Perhaps you should suggest he changes the core code!</description>
		<content:encoded><![CDATA[<p>Yes, it was a fairly big issue that the method I came up with didn&#8217;t work with AIOSEO pack (I must get round to installing it one day rather than dreaming up hacks!). Anyway, excellent work in editing the plugin. Perhaps you should suggest he changes the core code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-4759</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Wed, 21 Jan 2009 17:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-4759</guid>
		<description>Hi Malcolm,
I&#039;m using the famous &lt;a href=&quot;http://wordpress.org/extend/plugins/all-in-one-seo-pack/&quot; rel=&quot;nofollow&quot;&gt;All in One SEO Pack&lt;/a&gt; plugin here and didn&#039;t want to change my theme directly but use WordPress&#039; filter mechanism along with the plugin.
So, I added these two lines to &lt;code&gt;all_in_one_seo_pack.php&lt;/code&gt; (version 1.4.6.16):
&lt;pre lang=&quot;php&quot; line=&quot;694&quot;&gt;
$description = apply_filters(&#039;aiosp_description_filter&#039;, $description);
&lt;/pre&gt;
&lt;pre lang=&quot;php&quot; line=&quot;780&quot;&gt;
$title = apply_filters(&#039;aiosp_title_filter&#039;, $title);
&lt;/pre&gt;
Finally I could add the following to my themes &lt;code&gt;functions.php&lt;/code&gt;:
&lt;pre lang=&quot;php&quot;&gt;
function paged_title_filter($content) {
  global $cpage;
  if ($cpage &lt; 1) return $content;
  return str_replace(&#039;&#124;&#039;, &#039;- &#039;.__(&#039;comment page&#039;).&#039; &#039;.$cpage.&#039; &#124;&#039;, $content);
}
if (function_exists(&#039;add_filter&#039;))
  add_filter(&#039;aiosp_title_filter&#039;, &#039;paged_title_filter&#039;);

function paged_meta_description_filter($content) {
  global $cpage;
  if ($cpage &lt; 1) return $content;
  return $content.&#039; - &#039;.__(&#039;comment page&#039;).&#039; &#039;.$cpage;
}
if (function_exists(&#039;add_filter&#039;)) 
  add_filter(&#039;aiosp_description_filter&#039;, &#039;paged_meta_description_filter&#039;);
&lt;/pre&gt;
Have a look at &lt;a href=&quot;http://www.christianschenk.org/projects/wordpress-smoothgallery-plugin/#comments&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt; and click the &lt;em&gt;Older comments&lt;/em&gt; link: the title and the meta description will change accordingly.</description>
		<content:encoded><![CDATA[<p>Hi Malcolm,<br />
I&#8217;m using the famous <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All in One SEO Pack</a> plugin here and didn&#8217;t want to change my theme directly but use WordPress&#8217; filter mechanism along with the plugin.<br />
So, I added these two lines to <code>all_in_one_seo_pack.php</code> (version 1.4.6.16):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>694
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'aiosp_description_filter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>780
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'aiosp_title_filter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Finally I could add the following to my themes <code>functions.php</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> paged_title_filter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$cpage</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cpage</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'- '</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span><span style="color: #000088;">$cpage</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' |'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'add_filter'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'aiosp_title_filter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'paged_title_filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> paged_meta_description_filter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$cpage</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cpage</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' - '</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span><span style="color: #000088;">$cpage</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'add_filter'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
  add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'aiosp_description_filter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'paged_meta_description_filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Have a look at <a href="http://www.christianschenk.org/projects/wordpress-smoothgallery-plugin/#comments">this page</a> and click the <em>Older comments</em> link: the title and the meta description will change accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malcolm coles</title>
		<link>http://www.christianschenk.org/blog/paginated-comments-copyblogger-theme/comment-page-1/#comment-4674</link>
		<dc:creator>malcolm coles</dc:creator>
		<pubDate>Sat, 17 Jan 2009 00:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?p=381#comment-4674</guid>
		<description>I&#039;ve come up with a bit of PHP to make the titles of paged comments different (ie add page X to the end). You can see it &lt;a title=&quot;Avoid duplicate content with paged comments in WordPress&quot; href=&quot;http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve come up with a bit of PHP to make the titles of paged comments different (ie add page X to the end). You can see it <a title="Avoid duplicate content with paged comments in WordPress" href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/">here</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
