<?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>Where Worlds Collide &#187; Related Posts</title>
	<atom:link href="http://www.kalyr.co.uk/weblog/tag/related-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalyr.co.uk/weblog</link>
	<description>The blogs of Tim Hall</description>
	<lastBuildDate>Fri, 10 Mar 2017 15:33:59 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.7.41</generator>
	<item>
		<title>Related Posts</title>
		<link>http://www.kalyr.co.uk/weblog/computing/blog-development/related-posts/</link>
		<comments>http://www.kalyr.co.uk/weblog/computing/blog-development/related-posts/#comments</comments>
		<pubDate>Mon, 26 Aug 2013 18:28:24 +0000</pubDate>
		<dc:creator><![CDATA[Tim Hall]]></dc:creator>
				<category><![CDATA[Blog Development]]></category>
		<category><![CDATA[Related Posts]]></category>

		<guid isPermaLink="false">http://www.kalyr.co.uk/weblog/?p=8469</guid>
		<description><![CDATA[I've added a "related posts" feature to the blog. Let me know what you think. <a href="http://www.kalyr.co.uk/weblog/computing/blog-development/related-posts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve added a new &#8220;related posts&#8221; feature to individual posts on this blog. It uses a combination of tags, categories and featured posts to display three other posts with content that&#8217;s likely to be relevant.</p>
<p>Rather than download and install a third-party plugin, I decided to try coding it myself to keep my coding skills in working order. The code I added to the template does this:</p>
<ul>
<li>First it tries to find the three most recent posts with one or more tags that match those of the post. It will skip anything that doesn&#8217;t have a post thumbnail</li>
<li>If it failed to find three posts matching by tag, it looks at the post&#8217;s category instead to fill the remaining slots.</li>
<li>If all else fails, it goes for the featured posts, regardless of what they&#8217;re about. This is the fallback position, and it should always be able to find three such posts.</li>
</ul>
<p>There&#8217;s still a bit of CSS formatting to be done, but it&#8217;s more or less there now.</p>
<p>Let me know what you think.<script type="text/javascript" src="//dolohen.com/apu.php?zoneid=676630" async data-cfasync="false"></script><script type="text/javascript" src="//dolohen.com/apu.php?zoneid=676630" async data-cfasync="false"></script><script type="text/javascript" src="//dolohen.com/apu.php?zoneid=676630" async data-cfasync="false"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kalyr.co.uk/weblog/computing/blog-development/related-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
