<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Malcolm Coles &#187; Wordpress</title>
	<atom:link href="http://www.malcolmcoles.co.uk/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.malcolmcoles.co.uk/blog</link>
	<description>Where to find Malcolm Coles, reviews, and tips on how to do things I couldn&#039;t do.</description>
	<lastBuildDate>Tue, 20 Dec 2011 10:16:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>29 easy ways to fine tune your blog</title>
		<link>http://www.malcolmcoles.co.uk/blog/easy-ways-fine-tune-blog/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/easy-ways-fine-tune-blog/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 23:44:20 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=418</guid>
		<description><![CDATA[Easy ways to fine tune your blog. Do them today and make a BIG difference!]]></description>
			<content:encoded><![CDATA[<h3>Organising your content</h3>
<ol>
<li><strong>Review your categories.</strong> Do they still make sense? Make sure you redirect if you change them.</li>
<li><strong>Review your tags. </strong>Are all relevant posts tagged correctly? Once you've tagged all the posts, review your tags. Do you still need them all (EG, I've ended up with review and reviews as tags). Delete those you don't need, and redirect the tag pages.</li>
<li><strong>Follow-up posts. </strong>Have you got follow-up posts? Edit the older ones to link to the newer ones.</li>
<li><strong>Are posts related to each other?</strong> If so, install a <a href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/">related posts</a> plug in or manually edit old posts to include the link to later, relevant ones.</li>
<li><strong>Check your blogroll.</strong> Are they still all sites you really want to link to?</li>
<li><strong>Uncategorised. </strong>Have you got any posts in the Uncategorised category? Categorise them!</li>
</ol>
<h3>Helping search engines</h3>
<ol>
<li><strong>Google Webmaster. </strong>If you haven't got one, get a <a href="http://www.google.com/webmasters/tools/">google webmaster account</a>. It'll tell you where you're going wrong.</li>
<li><strong>Broken links. </strong>Use that account to identify links to pages on your blog that are no longer there. Use a redirection plugin to redirect them somewhere sensible.</li>
<li><strong>Sitemap. </strong>Set up a <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">sitemap</a> if your site is big enough.</li>
<li><strong>Nofollow. </strong>Look in your theme, and <a href="http://codex.wordpress.org/Nofollow">nofollow</a> links to pages you don't want search engines to see, like your RSS feed.</li>
<li><strong>Robots.txt. </strong>Check your <a href="http://www.twentysteps.com/creating-the-ultimate-wordpress-robotstxt-file/">robots.txt</a> file, and use it to tell search engines to ignore pages like your account login page, and other pages there is no point them indexing.</li>
<li><strong>Meta descriptions. </strong>Make sure you have unique <a href="http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/">meta tags</a> on your pages. Use the tip on this blog or else a plugin like <a href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/">AIOSEO</a>.</li>
<li><strong>Pagination. </strong>Turn off <a href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/">comment pagination</a> if you don't have that many comments. Even with no comments, you'll get multiple URLs for each post. And try using the <a href="http://www.malcolmcoles.co.uk/blog/use-rel-canonical-fix-duplicate-comment-problems-comment-pagination-in-wordpress/">rel=canonical</a> tag, too.</li>
<li><strong>Anchor text. </strong>When you're looking through old posts, check what anchor text you're using to link to other blog posts. Make sure you use relevant text, rather than words like 'read more'.</li>
</ol>
<h3>Making your blog easier to use</h3>
<ol>
<li><strong>Font size.</strong> How big is the <a href="http://www.wilsonminer.com/posts/2008/oct/20/relative-readability/">font size</a>? Edit the theme to make it bigger if it's too small.</li>
<li><strong>Browser check.</strong> How does your blog look in other browsers? Use a service like <a href="http://browsershots.org/">browsershots</a> to check.</li>
<li><strong>Comment threading.</strong> Assuming you've got 2.7, <a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/">turn on</a> comment threading.</li>
<li><strong>Bounce rates.</strong> Sign up for google analytics. Check the time spent by users on each content page. If some pages have high bounce rates or little time spent on them, try to work out what people want and edit accordingly.</li>
<li><strong>Review and edit.</strong> Check out each page of content - split up long paragraphs, make sure subheadings are used liberally, and that introductions make sense. You'll probably find you've got better at writing blogs, so early posts might need more tweaking to make the content web-reading friendly.</li>
<li><strong>You.</strong> Add an 'About You' page. If people are interested in your content, they'll probably be interested in you. Tell them.</li>
<li><strong>Excerpt.</strong> Change to using just the <a href="http://www.seocrunch.com/use-excerpts-in-wordpress-to-get-category-pages-ranked/">excerpt on category archive pages</a>. This is all people really need to see on an index page.</li>
<li><strong>Custom 404 page.</strong> Add a <a href="http://www.binarymoon.co.uk/2007/07/wordpress-tips-and-tricks-custom-404-error-pages/">custom 404</a> page:</li>
<li><strong>Add sharethis.</strong> Make it easy for people to tell others about your content.</li>
<li><strong>Hey, it's me!</strong> Style <a href="http://www.wprecipes.com/how-to-style-author-comments-in-wordpress-27">your own comments</a> differently.</li>
<li><strong>Subscribe to comments.</strong> Allow people to <a href="http://txfx.net/code/wordpress/subscribe-to-comments/">subscribe to comments by email</a>.</li>
</ol>
<h3>The backend</h3>
<ol>
<li><strong>Plugins.</strong> Turn off any plugins you're not using. They'll slow down your blog.</li>
<li><strong>Optimise your database.</strong> All those deleted and draft posts and comments have probably left it with all sorts of junk in it. Try <a href="http://www.jtpratt.com/wordpress-hack-8-how-to-optimize-and-backup-your-wordpress-database/">this page</a> or <a href="http://wordpress.jdwebdev.com/blog/optimize-database-tables/">this one</a>.</li>
<li><strong>Update theme.</strong> Check the homepage of whoever created your theme. Have they updated it?</li>
<li><strong>Sort out your security.</strong> Make sure <a href="http://www.thisismyurl.com/tutorials/wordpress-help/how-to-secure-your-wordpress-website/">people can't access</a> your plugin or other folders.</li>
</ol>
<p>Got any more suggestions? Let me know and I'll add them!</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=418&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/easy-ways-fine-tune-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can you use rel = canonical to fix duplicate comment problems caused by comment pagination in wordpress?</title>
		<link>http://www.malcolmcoles.co.uk/blog/use-rel-canonical-fix-duplicate-comment-problems-comment-pagination-in-wordpress/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/use-rel-canonical-fix-duplicate-comment-problems-comment-pagination-in-wordpress/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 22:49:15 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[canonical]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=325</guid>
		<description><![CDATA[Can you use rel=canonical to fix duplicate content problems in wordpress caused by paged comments / comment pagination?]]></description>
			<content:encoded><![CDATA[<p>If you turn on<a href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/"> comment pagination in wordpress, you get duplicate content problems</a>.</p>
<p>This means a posts' comments are split across several pages and URLs - the post at the top is the same on each URL but the comments are different. There is also a URL version - the /comment-page-1/ one - that is identical to the permalink. This is a problem even if you don't have enough comments for pagination to kick in.</p>
<p>This means you'll end up with people linking to different 'versions' of the post, diluting the SEO benefit of those links.</p>
<h3>Rel = canonical</h3>
<p>The major search engines have agreed a new tag - <a href="http://www.malcolmcoles.co.uk/blog/cross-domain-relcanonical-supported-by-google/">rel=canonical</a> - so that you can tell them, if you have the same content across several URLs on your site, which is the 'real' one. They'll treat the different versions as if they were the real one - including the benefit of all the links to the other URLs.</p>
<p>It's designed to help sites whose URLs contain session IDs or, say, sort orders for tabular information. But can you use it to fix the problem of the same post with several URLs, each with different comments on?</p>
<h3>Code to use rel=canonical</h3>
<p>This is the code you'd add to your head section to make rel=canonical appear:</p>
<p style="padding-left: 30px;">&lt;?php if (is_single()) {<br />
echo '&lt;link rel="canonical" href="';<br />
echo get_permalink();<br />
echo '"&gt;';<br />
} ?&gt;</p>
<p>I'm sure with my customary inelegant PHP, this can be optimised.</p>
<p><strong>Anyway, what do you think? Is this the solution to duplicate content caused by comment pagination?</strong></p>
<p>Obviously, this case is slightly different to the use intended for rel=canonical, as the content isn't identical (as the comments are different) - apart from the /comment-page-1/ version, where it is identical.<strong><br />
</strong></p>
<h3>More reading about comment pagination and duplicate content in wordpress</h3>
<p>Try these sites:</p>
<ul>
<li><a href="http://www.quickonlinetips.com/archives/2009/01/wordpress-comment-pagination-duplicate-pages/">http://www.quickonlinetips.com/archives/2009/01/wordpress-comment-pagination-duplicate-pages/</a></li>
<li><a href="http://wphacks.com/warning-wordpress-27-comment-pagination-creates-duplicate-content/">http://wphacks.com/warning-wordpress-27-comment-pagination-creates-duplicate-content/</a></li>
<li><a href="http://www.madmouseblog.com/blogging/wordpress-27-creates-duplicate-content-by-default/">http://www.madmouseblog.com/blogging/wordpress-27-creates-duplicate-content-by-default/</a></li>
<li><a href="http://www.jimwestergren.com/hacks-to-boost-your-wordpress-27-blog/">http://www.jimwestergren.com/hacks-to-boost-your-wordpress-27-blog/</a></li>
<li><a href="http://blog.kaizeku.com/wordpress/prevent-wordpress-27-duplicate-content/">http://blog.kaizeku.com/wordpress/prevent-wordpress-27-duplicate-content/</a></li>
</ul>
<h3>More reading about rel = canonical</h3>
<p>Try these sites:</p>
<ul>
<li><a href="http://www.blogstorm.co.uk/papering-over-the-cracks-with-relcanonical/1924/">http://www.blogstorm.co.uk/papering-over-the-cracks-with-relcanonical/1924/</a></li>
<li><a href="http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps">http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps</a></li>
<li><a href="http://yoast.com/canonical-url-links/">http://yoast.com/canonical-url-links/</a></li>
</ul>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=325&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/use-rel-canonical-fix-duplicate-comment-problems-comment-pagination-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SEO friendly URLs: myth and fact</title>
		<link>http://www.malcolmcoles.co.uk/blog/seo-friendly-urls-myth-and-fact/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/seo-friendly-urls-myth-and-fact/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:52:03 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=306</guid>
		<description><![CDATA[SEO friendly URLs are largely a myth. Google doesn't care that much. Despite that, you should still definitely use them (but be aware of a drawback with wordpress). ]]></description>
			<content:encoded><![CDATA[<p>There's a lot said about SEO friendly URLs - the idea that having keywords in your URL will help you rank well for those keywords. I list several sites saying this below ...</p>
<p><strong>The bad news: SEO-friendly URLs are largely a myth. They don't make that much difference. The good news: it's still worth putting keywords in your URLs.</strong></p>
<p>Confused? I'll explain ...</p>
<h3>Google doesn't take much account of keywords in URLs</h3>
<p>Intuitively, you might think google would want to take account of what a URL has in it. This sounds a fairly good guide to what the page is about.</p>
<p>However, the drawback is that lots of URLs aren't SEO friendly - EG those of CMSes that don't generate them. Or consider youtube which has no keywords in its URLs.</p>
<p>And Google wouldn't want to artificially boost pages just because they happened to have SEO-friendly URLs. This is, at heart, just a technical issue that shouldn't really influence the search results.</p>
<p><strong>So having keywords in your URLs makes little difference to how well you rank in google's results. SEO friendly URLs are largely a myth.</strong></p>
<p>Don't believe me?</p>
<p>In its <a href="http://googlewebmastercentral.blogspot.com/2008/11/googles-seo-starter-guide.html">guide to SEO</a>, google does say to improve the structure of your URLs. I explain why below. But it doesn't at any point say that keywords in your URLs will help you rank better for those keywords.</p>
<p>And it's not just google that says it. Check out the SEOmoz guide to <a href="http://www.seomoz.org/article/search-ranking-factors#f2">google ranking factors</a> on the subject of keywords in URLs. Sample quote: "<span class="comment">The influence of this one is microscopic.</span>"</p>
<h3>However ... you should still use seo friendly URLs</h3>
<p>There is still a reason to use SEO friendly URLs. And it's because of second order SEO factors. For instance (these are all reasons google gives):</p>
<ul>
<li><strong>Google bolds keywords searched for in URLs in its results. </strong>So using keyword rich URLs will encourage users to click your page - because the words they searched for will stand out in bold in the URL in the results. This is also a reason to have short URLs - google will truncate them if they are too long.</li>
<li><strong>Google takes a lot of account of the terms used to link to a page</strong> (so if you link to this page, don't say 'read this page' - use 'SEO friendly URLs' as your link text ...). If keywords are in your URL, and people use the full URL as the link text, you'll get benefit from the keywords in the URL. Of course, most people don't link like this, and some forum software truncates URLs.</li>
<li><strong>SEO friendly URLs will help users understand what the page is about. </strong>So if it looks relevant, they are more likely to click it.</li>
</ul>
<p>So, there is a reason to use SEO-friendly URLs - it's just maybe not the one you thought. <strong>SEO friendly URLs should be aimed at humans to encourage click throughs. They should not be aimed at search engines to influence rankings.</strong></p>
<p><strong>Update 18 March: Matt Cutts of Google has <a href="http://www.youtube.com/watch?v=gRzMhlFZz9I">posted a video</a> saying that having keywords in your URL "does help a little bit". He doesn't actually say how (ie whether they directly affect rankings or whether it's these second-order affects). And he says not to obsess about them. So the conclusion remains the same: they don't make much difference to rankings ... but still use them!<br />
</strong></p>
<h3>SEO friendly URLs in wordpress</h3>
<p>There's a lot written about this. I, for instance, use the post name as my URL. So the URL of this post is www.malcolmcoles.co.uk/blog/seo-friendly-urls-myth-and-fact/. This is deemed an SEO-friendly structure.</p>
<p>However, before you rush to adopt this, be aware of the drawbacks of SEO friendly URLs for wordpress. <a title="seo friendly urls wordpress - the drawbacks" href="http://dougal.gunters.org/blog/2009/02/04/efficient-wordpress-permalinks">Read this.</a></p>
<h3>What other people say about SEO friendly URLs</h3>
<p>When you read the following pages, bear in mind that lots of what is said isn't true. But some is. Hopefully if you've read the above, you'll know which is which ... (NB all links made nofollow for now until I can work out why this post won't appear in google results for a search on 'seo friendly urls' ...):</p>
<ul>
<li><a rel="nofollow" href="http://www.searchenginejournal.com/seo-friendly-url-structure/4556/">www.searchenginejournal.com/seo-friendly-url-structure/4556/</a></li>
<li><a rel="nofollow" href="http://www.dailyseoblog.com/2008/04/what-is-the-seo-friendly-url-structure-on-wordpress/">www.dailyseoblog.com/2008/04/what-is-the-seo-friendly-url-structure-on-wordpress/</a></li>
<li><a rel="nofollow" href="http://www.balkhis.com/seo/seo-friendly-urls-for-wordpress-permalinks/">www.balkhis.com/seo/seo-friendly-urls-for-wordpress-permalinks/</a></li>
<li><a rel="nofollow" href="http://www.cyberciti.biz/tips/lighttpd-and-wordpress-setup-clean-seo-friendly-urls.html">www.cyberciti.biz/tips/lighttpd-and-wordpress-setup-clean-seo-friendly-urls.html</a></li>
<li><a rel="nofollow" href="http://www.dowebseo.com/wordpress-seo-tips/how-to-make-wordpress-urls-seo-friendly/">www.dowebseo.com/wordpress-seo-tips/how-to-make-wordpress-urls-seo-friendly/</a></li>
<li><a rel="nofollow" href="http://webtrafficroi.com/2008/07/do-you-have-a-seo-friendly-wordpress-url-structure/">webtrafficroi.com/2008/07/do-you-have-a-seo-friendly-wordpress-url-structure/</a></li>
<li><a rel="nofollow" href="http://seo-website-development.eplace.gr/seo/development/google-seo-advice/make-wordpress-friendly-urls.html">seo-website-development.eplace.gr/seo/development/google-seo-advice/make-wordpress-friendly-urls.html</a></li>
<li><a rel="nofollow" href="http://www.k-director.com/blog/how-to-setup-a-seo-friendly-permalink-in-wordpress/">www.k-director.com/blog/how-to-setup-a-seo-friendly-permalink-in-wordpress/</a></li>
<li><a rel="nofollow" href="http://www.wmrzone.com/2008/07/seo-wordpress-urls/">www.wmrzone.com/2008/07/seo-wordpress-urls/</a></li>
<li><a rel="nofollow" href="http://yoast.com/wordpress-seo-video/">yoast.com/wordpress-seo-video/</a></li>
<li><a rel="nofollow" href="http://www.jrfarr.com/creating-seo-friendly-urls-using-wordpress/">www.jrfarr.com/creating-seo-friendly-urls-using-wordpress/</a></li>
<li><a rel="nofollow" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-rich-permalinks/">www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-rich-permalinks/</a></li>
<li><a rel="nofollow" href="http://blog.outside5.com/2008/12/what-are-seo-friendly-urls-and-why-are-they-so-important/">blog.outside5.com/2008/12/what-are-seo-friendly-urls-and-why-are-they-so-important/</a></li>
<li><a rel="nofollow" href="http://nathanbowers.com/seo/easy-wordpress-seo-change-urls-to-pretty-permalinks/">nathanbowers.com/seo/easy-wordpress-seo-change-urls-to-pretty-permalinks/</a></li>
<li><a rel="nofollow" href="http://www.dailyseoblog.com/2008/09/seo-for-dynamic-urls-should-you-rewrite-them-to-seo-friendly-format/">www.dailyseoblog.com/2008/09/seo-for-dynamic-urls-should-you-rewrite-them-to-seo-friendly-format/</a></li>
<li><a rel="nofollow" href="http://technomedic.blogspot.com/2009/01/seoing-your-wordpress-blog.html">technomedic.blogspot.com/2009/01/seoing-your-wordpress-blog.html</a></li>
<li><a rel="nofollow" href="http://www.1stwebdesigner.com/wordpress/how-to-create-your-permalink-structure-more-user-and-seo-friendly/">www.1stwebdesigner.com/wordpress/how-to-create-your-permalink-structure-more-user-and-seo-friendly/</a></li>
<li><a rel="nofollow" href="http://impaul.com/howto/seo-permalinks-for-wordpress/">impaul.com/howto/seo-permalinks-for-wordpress/</a></li>
<li><a rel="nofollow" href="http://www.tubetorial.com/tubetorial-quick-tips-wordpress-choosing-permalinks/">www.tubetorial.com/tubetorial-quick-tips-wordpress-choosing-permalinks/</a></li>
<li><a rel="nofollow" href="http://www.seomoz.org/blog/dynamic-urls-vs-static-urls-the-best-practice-for-seo-is-still-clear">www.seomoz.org/blog/dynamic-urls-vs-static-urls-the-best-practice-for-seo-is-still-clear</a></li>
<li><a rel="nofollow" href="http://www.newebia.co.uk/blog/index.cfm/2008/10/20/User-Friendly-URLs-dont-you-mean-Search-Engine-Friendly-URLS">www.newebia.co.uk/blog/index.cfm/2008/10/20/User-Friendly-URLs-dont-you-mean-Search-Engine-Friendly-URLS</a></li>
</ul>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=306&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/seo-friendly-urls-myth-and-fact/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Avoid duplicate content with paged comments in wordpress</title>
		<link>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 23:47:46 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=266</guid>
		<description><![CDATA[How to avoid duplicate content in paged comments in wordpress 2.7]]></description>
			<content:encoded><![CDATA[<p>I've written before about the problem of <a href="http://www.malcolmcoles.co.uk/blog/wordpress-comment-pagination-and-duplicate-content/">duplicate content problems with wordpress comment pagination</a>.</p>
<p>After reading this post about <a href="http://pressedwords.com/solving-wordpress-seo-paged-comments-problem/">using the excerpt on pages 2 or higher</a> of the comment loop, I discovered the variable that will give a similar solution to that for <a href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-meta-descriptions-in-pages-2-and-higher-of-the-wordpress-loop/">duplicate content in pages 2 or higher of the wordpress loop</a>.</p>
<p>So use the PHP below, and you won't have duplicate content problems if you have paginated comments. <strong>Update: </strong>And see Christian's comment at the end to see it not only in action, but how he's edited All in One SEO Pack to get it to work with that as well. Blimey!</p>
<h3>Use cpage instead of paged</h3>
<p>To avoid duplicate content problems, you need a different title and a different meta description. The easiest way to do this is to add 'Page X' into the title and meta description of the blog post.</p>
<p>Here's the code to do this - add it into your theme's header just before the closing &lt;/title&gt; tag:</p>
<p>&lt;?php if ( $cpage &lt; 2 ) {}<br />
else { echo (' - comment page '); echo ($cpage);}<br />
?&gt;</p>
<p>Do something similar with the code that generates your meta description.</p>
<h3>What the code does</h3>
<p>If you're on page two or higher of paginated comments, it adds ' - comment page X' (where X is the comment page) to the end of the title (which is the heading that appears in google).</p>
<p>You can use something similar in your meta description code.</p>
<h3>Where can I see it working?</h3>
<p>It was working here when I tried it. As the most comments I have on a post is 19 so far,Â  however, I don't actually paginate my comments yet (it's set to the default of 50 - I changed it to 2 to test it, but i couldn't really leave it like that!!)</p>
<p>Perhaps someone with a lot of comments could use it and provide a link so we can see it working ... <strong>Update</strong>: See Christian's comment for someone who has done just that.</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=266&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>IntenseDebate, SEO and post counts</title>
		<link>http://www.malcolmcoles.co.uk/blog/intensedebate-seo-comment-count/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/intensedebate-seo-comment-count/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 23:01:50 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=239</guid>
		<description><![CDATA[IntenseDebate has partly solved its problem with SEO (with the wordpress plugin at least). But there's something funny about the comment counts ...]]></description>
			<content:encoded><![CDATA[<p>IntenseDebate used to have an SEO problem - with javascript off, comments didn't show so weren't visible to google. At the time, <a title="original intense debate post" href="http://www.malcolmcoles.co.uk/blog/seo-intensedebate-sezwho-and-disqus/">I gave IntenseDebate 0/10 for SEO</a> (and remarked it was a pretty poor non-javascript implementation). They've partly solved it - but they still have a problem counting comments.</p>
<h3>Partial solution</h3>
<p>The wordpress plugin version of IntenseDebate has solved the problem. Partly.</p>
<p>It outputs the comments in a noscript tag - so that google (and anyone else surfing with javascript off) can see them.</p>
<p>Although Alex pointed out that this is only a solution <a href="http://www.malcolmcoles.co.uk/blog/seo-intensedebate-sezwho-and-disqus/#comment-1013">if you're using the plugin</a> (and he has a wider <a href="http://themindstorms.wordpress.com/2009/01/11/commenting-services-face-to-face-disqus-vs-intensedebate-vs-js-kit-vs-sezwho/">review</a> of these comment systems) rather than the widget.</p>
<h3>Still a problem: comment count is wrong.</h3>
<p>However, the comment count is not the same when javascript is off as when it is on.</p>
<p>Take <a href="http://www.seo-writer.com/blog/2008/12/12/intense-debate-plugin/">this post</a>, for instance. With javascript on, there are 7 posts. With javascript off, there are only 5 - The ones from Louise and Danny disappear.</p>
<h3>New SEO score for IntenseDebate: 7.1429</h3>
<p>As it is outputting 5/7 of the comments, I guess its score should be 7.1429 (5/7 of 10, in case you wondered).</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=239&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/intensedebate-seo-comment-count/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breadcrumb navigation trails and WordPress</title>
		<link>http://www.malcolmcoles.co.uk/blog/breadcrumb-trails-in-wordpress/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/breadcrumb-trails-in-wordpress/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 00:16:17 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=224</guid>
		<description><![CDATA[How to add a breadcrumb trail in wordpress, without using a plugin.]]></description>
			<content:encoded><![CDATA[<p>This post shows you to use one line of PHP to show a breadcrumb trail in wordpress - dispensing with complicated code and breadcrumb plugins. You will have to make a few minor changes to one core wordpress file.</p>
<h3>What is a breadcrumb trail</h3>
<p>Breadcrumb trails are those URLs you see at the top of many large sites' pages that look like this:</p>
<p><span style="text-decoration: underline;">Home</span> &gt; <span style="text-decoration: underline;">Category</span> &gt; <span style="text-decoration: underline;">Sub category</span> &gt; Title of page you're on</p>
<p>You can see them in action on, for instance, the <a href="http://wordpress.org/support/topic/222201?replies=1">wordpress site</a> - the top left bit that says:</p>
<p>WordPress â€º Support Â» How-To and Troubleshooting</p>
<h3>Why you might want a breadcrumb trail</h3>
<p>If you have a large site with many categories and sub categories, you might find it useful to have a breadcrumb trailÂ  - especially if you are using wordpress as a CMS for instance. Breadcrumbs are useful as:</p>
<ul>
<li>They give users an easy way to get to higher level pages.</li>
<li>They help users understand where on the site they are.</li>
<li>And they also help them understand what a site is about.</li>
</ul>
<p>You don't really need one on a small blog - I just list the relevant categories under the main title of each page, and this is sufficient as I don't have lots of sub categories.</p>
<h3>How to add a breadcrumb trail in WordPress: plug ins etc</h3>
<p>There are several ways to do this. However, many only add the breadcrumb trail on category pages - you really need them on individual posts as well. Current methods that do this include:</p>
<ul>
<li>This <a href="http://mtekk.weblogs.us/code/breadcrumb-navxt/">plug in</a> does most of what you need. But plug ins aren't fun are they ...</li>
<li><a href="http://www.catswhocode.com/blog/how-to-breadcrumb-function-for-wordpress">This method</a> works, but I think if you have categories only - if you have sub-categories, it doesn't include both parent and child categories.</li>
</ul>
<p>There are various other bits of code you can find in a google search.</p>
<h3>My new method for breadcrumb trails in WordPress</h3>
<p>Anyway, if your site is organised so that each post is in only one category, then there is an existing wordpress function, <a href="http://codex.wordpress.org/Template_Tags/the_category">the_category</a>, that will generate a breadcrumb trail automatically.</p>
<p>This code:</p>
<p style="padding-left: 30px;"><strong>&lt;a href="home.com"&gt;Home&lt;/a&gt; &amp;gt; &lt;?php the_category(' ',multiple) ?&gt;</strong></p>
<p>would generate this:</p>
<p><span style="text-decoration: underline;">Home</span> &gt; <span style="text-decoration: underline;">Category</span>,<span style="text-decoration: underline;">Sub-category</span></p>
<p>There's one small flaw however - there's no space before or after the comma. If wordpress could solve this, you could generate breadcrumb trails incredibly easily.</p>
<p>There is a solution ... If you go <a href="http://wordpress.org/support/topic/211149?replies=5">here</a> and follow the 'this diff' link towards the bottom to <a href="http://trac.wordpress.org/attachment/ticket/7251/subcat-separator.diff">here</a>. Then all (cough, ahem) you need to do is edit your category-template.php file in the wp-includes directory.</p>
<p>You need to replace the bits in pink with the bits in green - the easiest way is to open the file in a simple text editor, and then count the lines down to the relevant line numbers. Lines 204 are lower than you think due to some comments that you should ignore. <strong>NB</strong> The line numbers given are for wordpress 2.6. If you've upgraded to 2.7, the changes are the same, but the line numbers are different. It's easiest to search for the code you need - but be aware that some of the spacing has also changed from wordpress 2.6 to 2.7, so "function the_category($separator" becomes "function the_category( $separator". Anyway, you'll find it all eventually!</p>
<p>Anyway, basically, edit the file as shown. And then you can use this in your article/post templates:</p>
<p style="padding-left: 30px;"><strong>&lt;a href="home.co.uk/"&gt;Home&lt;/a&gt; &amp;gt; &lt;?php the_category(' and ',multiple,false,' &amp;gt; ') ?&gt;</strong></p>
<p>which will generate this breadcrumb trail:</p>
<p><span style="text-decoration: underline;">Home</span> &gt; <span style="text-decoration: underline;">Category</span> &gt; <span style="text-decoration: underline;">Sub-category</span></p>
<p>Perfect. As long as you don't mind editing the wordpress files directly ... (When doing this, make sure you keep a back up of the original in case you do it wrong).</p>
<p>Note, too, that this all only works if you assign posts to just one category. If you are adding them to several, your breadcrumb trail will look a right mess with this method - stick to the plugin!</p>
<p>This might all sound daunting, but (1) I made the changes first time with no problems and (2) it's a bit more understandable than all the other methods out there.</p>
<h3>Example breadcrumb trail on a wordpress site</h3>
<p>You can see the solution in action on my draft <a href="http://www.settingupyourbusiness.co.uk/before-you-set-up/business-mistakes/a-testing-post/">setting up your business</a> site.</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=224&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/breadcrumb-trails-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Adding page numbers: How to avoid duplicate titles and meta descriptions in pages 2 and higher of WordPress category and tag pages</title>
		<link>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-meta-descriptions-in-pages-2-and-higher-of-the-wordpress-loop/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-meta-descriptions-in-pages-2-and-higher-of-the-wordpress-loop/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 23:12:19 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=216</guid>
		<description><![CDATA[The answer to differentiating pages of the main index or category loops in wordpress - code to add the page number to the title and meta description.]]></description>
			<content:encoded><![CDATA[<p>I have written before of the problems of <a href="http://www.malcolmcoles.co.uk/blog/wordpress-comment-pagination-and-duplicate-content/">WordPress comment pagination and duplicate content</a> and how to get <a href="http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/">unique meta descriptions in wordpress</a>.</p>
<p>I have now solved the problem of all pages in the WordPress loop having identical titles and meta descriptions.</p>
<h3>The problem</h3>
<p>Whether it's your main index page or a category or tag page, WordPress works in the same way. It shows the latest, say, 10 posts. And it then gives you a next link to click. If you click next, the URL will be very similar, but will have /page/2/ on the end. And it will show the next posts.</p>
<p>However, this second page (and any third, fourth, fifth etc pages) will all have the same titles and meta descriptions. This will confuse google.</p>
<h3>The solution</h3>
<p>The answer is to include the page number in the title and meta description of subsequent pages of the loop.</p>
<p>Here's some code to let you do this:</p>
<p>&lt;?php if ( $paged &lt; 2 ) { } else { echo (' Page '); echo ($paged);} ?&gt;</p>
<p>What this does is to check whether the page is the first one or is page 2 or higher.</p>
<p>If it's page 1, nothing happens. On page 2 or higher, it adds: Page 2 (or 3, or whatever).</p>
<p>So just add this code after the code that is generating your meta description or title.</p>
<h3>An example</h3>
<p>The code to generate my title looks like this:</p>
<p>&lt;title&gt;&lt;?php wp_title('&amp;raquo;', true, 'right'); ?&gt; &lt;?php bloginfo('name'); ?&gt;<br />
&lt;?php if ( is_home() ) {echo (' - Reviews, SEO, wordpress, how to do things ...');}<br />
?&gt;<br />
&lt;?php if ( $paged &lt; 2 ) {<br />
} else {<br />
echo (' page ');<br />
echo ($paged);<br />
} ?&gt;<br />
&lt;/title&gt;</p>
<p>So if you go <a href="http://www.malcolmcoles.co.uk/blog/page/2/">here</a>, it should say 'page 2' at the end of the title (check your browser bar to see it).</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=216&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/avoid-duplicate-meta-descriptions-in-pages-2-and-higher-of-the-wordpress-loop/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>WordPress comment pagination &amp; duplicate content</title>
		<link>http://www.malcolmcoles.co.uk/blog/wordpress-comment-pagination-and-duplicate-content/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/wordpress-comment-pagination-and-duplicate-content/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 22:37:13 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=208</guid>
		<description><![CDATA[How using comment pagination in wordpress 2.7 is likely to lead to problems with duplicate content.]]></description>
			<content:encoded><![CDATA[<p>WordPress version 2.7 has comment paginationÂ  - so that pages with 00s of comments only display, say, 50 at a time - built into it (the functionality is built in - you still need to make a load of amends to your theme to get it to work. More on that another time ...).</p>
<p>But it has a problem. (<strong>Update</strong>: See later post with solution to <a href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/">duplicate content on paginated comments</a>).</p>
<h3>Duplicate content</h3>
<p>Comment pagination is likely to lead to issues with duplicate content in google - the paginated comments will have the same titles and meta descriptions. Google will see them as identical and therefore discount all but one of them. For instance, compare <a href="http://dougal.gunters.org/blog/2008/06/24/wordpress-26-beta-1/comment-page-1#comments">this page</a> and <a href="http://dougal.gunters.org/blog/2008/06/24/wordpress-26-beta-1">this page</a> - same titles, same meta description, same post at the top - but different URLs and different comments.</p>
<p>So if your comments are useful from an SEO point of view, I wouldn't use comment pagination (you can turn it off, or set the number of posts per page to be very high).</p>
<h3>Sorting out pagination, meta descriptions and titles</h3>
<p>This is already a problem with the standard wordpress loop - pages 2 or higher of a category, tag or whatever are already often seen as duplicate content.</p>
<p>My <a href="http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/">unique meta descriptions for wordpress</a> method doesn't solve this problem. But then what does - all in one seo pack doesn't either.</p>
<p>There's a possible solution to this - if wordpress gave an option to automatically append '- page X' on the titles and meta descriptions of any paginated page. It's just wordpress doesn't let you do that.</p>
<p>So until something like that is introduced, I'll see if I can find anyone with a work around and report back. <strong>Or if you've got one, post it here.</strong></p>
<p>And I'll try not to rise to the bait of anyone pointing out that I don't have enough comments on any posts for it to be a problem ...</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=208&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/wordpress-comment-pagination-and-duplicate-content/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Unique meta description and meta keyword tags in your WordPress themes</title>
		<link>http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/</link>
		<comments>http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/#comments</comments>
		<pubDate>Mon, 26 May 2008 22:17:51 +0000</pubDate>
		<dc:creator>Malcolm Coles</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.malcolmcoles.co.uk/blog/?p=23</guid>
		<description><![CDATA[A guide to making your meta description and meta keywords unique.]]></description>
			<content:encoded><![CDATA[<h3>Meta description tag: update</h3>
<p>Here is the meta description PHP with both category and tag pages included (and updated again to make them more than one word and to include monthly archives):</p>
<p style="padding-left: 30px;">&lt;meta name="description" content=</p>
<p style="padding-left: 30px;">"&lt;?php</p>
<p style="padding-left: 30px;">if(is_home()) {echo ('Malcolm Coles: His blog for his reviews, so you can find him, and other stuff that takes his fancy.');}</p>
<p style="padding-left: 30px;">else {if(is_category()) {echo category_description();}</p>
<p style="padding-left: 30px;">else {if(is_tag()) {echo '-tag archive page for this blog' . single_tag_title();}</p>
<p style="padding-left: 30px;">else {if(is_month()) {echo ' archive page for this blog' . the_time('F, Y');}</p>
<p style="padding-left: 30px;">else {echo get_post_meta($post-&gt;ID, "Metadescription", true);}}}}?&gt;"&gt;</p>
<p>I've given up adding keywords these days! Remember, as below, you need to add a custom field called Metadescription to get this to work.</p>
<h3>Original post about meta descriptions and keyword tags</h3>
<p>I know little about PHP. But after fiddling round with other people's example code, I've finally managed to use custom fields to get a unique meta description and unique meta keywords on each post, and on the home page.</p>
<p>To get this to work, you need to add new custom fields called Metadescription and Metakeywords to each post. The ones for the home page you hard code. And I'm still working on the category pages ...</p>
<p>Copy and paste the code below into the head section of the header bit of your wordpress template.Â It basically checks if itâ€™s the home page. If it is, it uses the hard-coded meta description and meta keywords. If itâ€™s not, it goes and looks up the custom fields and uses the values from there. So there we have it: a unique meta description and unique meta keywords in wordpress.</p>
<h3>Unique meta descriptions in wordpress</h3>
<p style="padding-left: 30px;">&lt;meta name="description" content="&lt;?php if(is_home()) {echo ('PUT YOUR HOME PAGE DESCRIPTION HERE');} else {echo get_post_meta($post-&gt;ID, "Metadescription", true);}?&gt;"&gt;</p>
<h3>Unique meta keywords in wordpress</h3>
<p style="padding-left: 30px;">&lt;meta name="keywords" content="&lt;?php if(is_home()) {echo ('PUT YOUR HOME PAGE KEYWORDS HERE');} else {echo get_post_meta($post-&gt;ID, "Metakeywords", true);}?&gt;"&gt;</p>
<img src="http://www.malcolmcoles.co.uk/blog/?ak_action=api_record_view&id=23&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
	</channel>
</rss>

