<?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>Atomic Playboy&#187; Wordpress</title>
	<atom:link href="http://atomicplayboy.net/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://atomicplayboy.net</link>
	<description>All hail the mushroom cloud</description>
	<lastBuildDate>Sat, 22 May 2010 19:43:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Canonical URLs in WordPress</title>
		<link>http://atomicplayboy.net/blog/2009/03/05/canonical-urls/</link>
		<comments>http://atomicplayboy.net/blog/2009/03/05/canonical-urls/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 16:26:50 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/?p=650</guid>
		<description><![CDATA[Like any good obsessive-compulsive blogger, I frequently pour over my web site statistics looking for interesting stuff. One thing that caught my eye is that search results coming in from Google tends to link to threaded comment pages for entries. For example, I&#8217;d get hits to /blog/2009/03/05/entry-slug/comment-page-1/, which is an URL that&#8217;s pretty hard to [...]]]></description>
			<content:encoded><![CDATA[<p>Like any good obsessive-compulsive blogger, I frequently pour over my web site statistics looking for interesting stuff. One thing that caught my eye is that search results coming in from Google tends to link to threaded comment pages for entries.</p>

<p>For example, I&#8217;d get hits to <tt>/blog/2009/03/05/entry-slug/comment-page-1/</tt>, which is an <span class="caps">URL </span>that&#8217;s pretty hard to actually find on the page &#8212; it&#8217;s only used for permanent links to entry comments, with an anchor to the comment ID tacked on, <a href="http://atomicplayboy.net/blog/2009/02/23/spotify-bay/comment-page-1/#comment-49949">like this</a>.</p>

<p>What I&#8217;d prefer to see is incoming hits to the actual blog entry <span class="caps">URL </span>&#8211; <tt>/blog/2009/03/05/entry-slug/</tt> in this case. Luckily, there&#8217;s a smart and simple solution &#8212; canonical <span class="caps">URL</span>s. The Google Webmaster blog <a href="http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html">explains it nicely</a> with examples.</p>

<p>So I simply add a canonical tag referencing the preferred <span class="caps">URL </span>in each page. Now, it&#8217;s just the <em>preferred</em> <span class="caps">URL </span>on my side &#8212; this is just a hint to search engines that tells them that this page is a duplicate, and that I&#8217;d prefer them to let results point to one particular page of these duplicates. In 99% of the cases it will be respected, though.</p>

<p>The actual code is just a few lines. Add this in <tt>header.php</tt> of your theme, somewhere in the head:</p>




<pre><code>
&lt;?php if (is_singular()) { ?&gt;
&lt;link rel="canonical" href="&lt;?php the_permalink() ?&gt;" /&gt;
&lt;?php } ?&gt;
</code></pre>




<p><tt><a href="http://codex.wordpress.org/Conditional_Tags#A_Single_Page.2C_Single_Post_or_Attachment">is_singular</a></tt> is a function that returns true if any of <tt>is_single()</tt>, <tt>is_page()</tt> or <tt>is_attachment</tt> return true &#8212; in other words, if you&#8217;re currently visiting a single entry, a page or an attachment.</p>

<p>With this, each entry sub-page of comments has the main entry <span class="caps">URL </span>as their canonical <span class="caps">URL.</span> Now to wait a few days and see when the search engines<sup class="footnote"><a href="#fn1">1</a></sup> pick up the change.</p>

<p class="footnote" id="fn1"><sup>1</sup> And by &#8220;search engines&#8221; I mean &#8220;Google.&#8221;</p><script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2009/03/05/canonical-urls/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2009/03/05/canonical-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bookmarks for 26/01 through 02/02</title>
		<link>http://atomicplayboy.net/blog/2009/02/02/links/</link>
		<comments>http://atomicplayboy.net/blog/2009/02/02/links/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:01:28 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[Blu-Ray]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[economy]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[entertainment]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[information architecture]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[police]]></category>
		<category><![CDATA[proxies]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[user testing]]></category>
		<category><![CDATA[web browsers]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/?p=590</guid>
		<description><![CDATA[These are links I found interesting for 26/01 through 30/01]]></description>
			<content:encoded><![CDATA[<p>These are links I found interesting for 26/01 through 30/01:</p>


<ul>
<li><a href="http://glimmerblocker.org/">GlimmerBlocker</a> &#8212; Ad blocker for Safari implemented as a non-intrusive proxy.</li>
<li><a href="http://noscope.com/journal/2009/01/extra-image-tags-plugin">Noscope | Journal | Extra Image Tags Plugin</a> &#8212; This is a very minimalistic WordPress plugin, which finds all images you insert into your posts, and wrap them in extra divs, so you can style the hell out of them.</li>
<li><a href="http://www.uie.com/articles/three_hund_million_button">The $300 Million Button</a> &#8212; &#8220;It&#39;s hard to imagine a form that could be simpler: two fields, two buttons, and one link. Yet, it turns out this form was preventing customers from purchasing products from a major e-commerce site, to the tune of $300,000,000 a year. What was even worse: the designers of the site had no clue there was even a problem.&#8221;</li>
<li><a href="http://www.officer.com/web/online/Operations-and-Tactics/Cops-Talk-Funny/3$40630">Cops Talk Funny</a> &#8212; &#8220;From recruits in academies to senior officers and command staff, you talk funny when you take the stand. Is it in the water at the academies; is there a secret society where you&#39;re taught this special language?&#8221;</li>
<li><a href="http://www.gamesindustry.biz/articles/videogames-outsell-dvd-and-blu-ray-in-2008">Videogames outsell <span class="caps">DVD </span>and Blu-ray in 2008</a> &#8212; Retail sales of videogames overtook that of <span class="caps">DVD </span>and Blu-ray for the first time, as sales of packaged media grew 6 per cent worldwide to hit <span class="caps">USD</span> 61 billion in 2008, according to Media Control GfK International.</li>
</ul>

<script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2009/02/02/links/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2009/02/02/links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr Album</title>
		<link>http://atomicplayboy.net/blog/2006/05/07/flickr-album/</link>
		<comments>http://atomicplayboy.net/blog/2006/05/07/flickr-album/#comments</comments>
		<pubDate>Sun, 07 May 2006 17:04:52 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[April]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Kestrel]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/blog/2006/05/07/flickr-album/</guid>
		<description><![CDATA[Wherein the author posts pictures of cats.]]></description>
			<content:encoded><![CDATA[<p><a href="http://atomicplayboy.net/photos/photo/140873661/PICT2171.html" class="tt-flickr"><img src="http://static.flickr.com/55/140873661_c1d1606c01.jpg" width="500" height="375" alt="PICT2171" title="" /></a> </p>

<p>I just installed the <a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Album</a> plugin for WordPress, and I&#8217;m pretty impressed so far.</p>

<p>I used to post Flickr images by cut-n-pasting a text snippet I had stored as a WordPress note and replacing the relevant links with those of the photo I wanted to post. It works, but it&#8217;s kinda clunky and slow to do. With <strong>Flickr Photo Album</strong> you get a bar on the Write Post screen displaying your latest Flickr images, inserting the proper <span class="caps">HTML </span>with just two clicks &#8212; one to select the photo, another to select the size of the image you want to post. Perfect!</p>

<p><em>But wait, there&#8217;s more!</em> You also get an integrated Flickr photo album (hence the name) &#8212; mine is <a href="http://atomicplayboy.net/photos/">located here</a>. It looks kinda boring, but I&#8217;ll fiddle with the design of it later.</p>

<p>Definitely going to support this plugin in Kestrel.</p>

<p>In the other news, allergy season has started. Yay.</p><script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2006/05/07/flickr-album/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2006/05/07/flickr-album/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A New Hope</title>
		<link>http://atomicplayboy.net/blog/2006/05/07/a-new-hope/</link>
		<comments>http://atomicplayboy.net/blog/2006/05/07/a-new-hope/#comments</comments>
		<pubDate>Sun, 07 May 2006 01:55:43 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Kestrel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/blog/2006/05/07/a-new-hope/</guid>
		<description><![CDATA[Wherein the author attempts to create a new Wordpress theme.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time, but I&#8217;ve started fiddling a bit with web design again. While I do like <a href="http://getk2.com/">K2</a>, I prefer to make my own design. And K2 was always meant to be temporary here until I found my long lost design groove again. And I <em>think</em> I spotted it out in the gutter, drunk out of its mind. It&#8217;s in rehab now.</p>

<p>I&#8217;ve started work on a <a href="http://wordpress.org/">WordPress</a> theme tentatively called <strong>Kestrel</strong>. I&#8217;m writing the basic layout now with <a href="http://codex.wordpress.org/Theme_Development">the theme development</a> page readily available in another tab.</p>

<p>I do admit that it feels a bit messy to use pure <span class="caps">PHP </span>instead of a template language like <a href="http://movabletype.org/">Movable Type</a> uses, but I&#8217;ll manage.</p>

<p>Since doing live editing gets messy I&#8217;ve set up a local web server hosted on my file server. <a href="http://lighttpd.net/">lighttpd</a> as web server, <span class="caps">PHP </span>and MySQL.</p>

<p>lighttpd is <em>very</em> nice for local development &#8212; it doesn&#8217;t include the entire kitchen sink like Apache does. It took a bit of work to get it going the way I wanted, though. For a while it decided to send me the <span class="caps">PHP </span><em>source code</em> instead of passing it on to <span class="caps">PHP </span>&#8211; but only when I accessed a <span class="caps">PHP </span>file from my workstation. When viewed locally it worked properly.</p><script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2006/05/07/a-new-hope/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2006/05/07/a-new-hope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SNAFU</title>
		<link>http://atomicplayboy.net/blog/2005/02/22/snafu/</link>
		<comments>http://atomicplayboy.net/blog/2005/02/22/snafu/#comments</comments>
		<pubDate>Tue, 22 Feb 2005 00:36:09 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[trackbacks]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/blog/2005/02/22/snafu/</guid>
		<description><![CDATA[The front page was b0rked for a couple of hours. I still had Movable Type installed, and it looks like someone managed to send a trackback (I had deleted mt-comments.cgi to prevent spam, since I don&#8217;t even use MT any more), which caused the front page to be overwritten by MT. I took this as [...]]]></description>
			<content:encoded><![CDATA[<p>The front page was b0rked for a couple of hours. I still had Movable Type installed, and it looks like someone managed to send a trackback (I had deleted mt-comments.cgi to prevent spam, since I don&#8217;t even use MT any more), which caused the front page to be overwritten by <span class="caps">MT.</span></p>

<p>I took this as a sign that it was time to upgrade to WordPress 1.5. So I did. All is well again.</p>

<p><strong>Later:</strong> Surprise surprise, it was trackback spam.</p><script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2005/02/22/snafu/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2005/02/22/snafu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>200:1</title>
		<link>http://atomicplayboy.net/blog/2005/01/10/ratio/</link>
		<comments>http://atomicplayboy.net/blog/2005/01/10/ratio/#comments</comments>
		<pubDate>Mon, 10 Jan 2005 07:03:21 +0000</pubDate>
		<dc:creator>Johan Svensson</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://atomicplayboy.net/blog/2005/01/10/ratio/</guid>
		<description><![CDATA[Since I switched from Movable Type to WordPress, I&#8217;ve had one (1) legit comment. And 200 attempted spam comments that Spam Karma shot on sight. Addendum: 11 days later, and I&#8217;ve passed 900.]]></description>
			<content:encoded><![CDATA[<p>Since I switched from Movable Type to WordPress, I&#8217;ve had one (1) legit comment.</p>

<p>And 200 attempted spam comments that Spam Karma shot on sight.</p>

<p><strong>Addendum:</strong> 11 days later, and I&#8217;ve passed 900.</p><script src="http://feeds.feedburner.com/~s/AtomicPlayboy?i=http://atomicplayboy.net/blog/2005/01/10/ratio/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://atomicplayboy.net/blog/2005/01/10/ratio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: atomicplayboy.net @ 2012-02-12 07:23:20 -->
