<?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"
	>
<channel>
	<title>Comments on: Write Your Own Related Posts Plugin</title>
	<atom:link href="http://curtishenson.com/write-your-own-related-posts-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtishenson.com/write-your-own-related-posts-plugin/</link>
	<description>Freelance Web Designer and Wordpress Guru</description>
	<pubDate>Thu, 28 Aug 2008 18:54:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: PlanetaJob</title>
		<link>http://curtishenson.com/write-your-own-related-posts-plugin/#comment-1322</link>
		<dc:creator>PlanetaJob</dc:creator>
		<pubDate>Wed, 06 Aug 2008 15:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=108#comment-1322</guid>
		<description>Сенкью, полезная инфа! ;)</description>
		<content:encoded><![CDATA[<p>Сенкью, полезная инфа! ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre</title>
		<link>http://curtishenson.com/write-your-own-related-posts-plugin/#comment-1191</link>
		<dc:creator>Alexandre</dc:creator>
		<pubDate>Thu, 17 Jul 2008 19:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=108#comment-1191</guid>
		<description>Great work!
Very useful

Thank you.</description>
		<content:encoded><![CDATA[<p>Great work!<br />
Very useful</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://curtishenson.com/write-your-own-related-posts-plugin/#comment-419</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Tue, 15 Apr 2008 19:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=108#comment-419</guid>
		<description>Martin,

Yes to both, at least in theory. 

To limit posts to a certain category I would add another line to the database query.  Something like AND post_category = 'DVD', this would exclude all other categories.  I'm not sure how the database is structured off the top of my head so you would need to find what table and column that info is kept in.  Let me know if you need help with that.

Another possible solution would be to use a conditional tag like if(is_category('DVD') { //do stuff }  Not sure if it would work but it would be easy to try out.

For the_title() I would do something similar.  Use a database query to match the title with any other posts with the same title.  Like WHERE post_title = p.post_title AND p.ID != $post-&#62;ID.  All you need is to match the titles in the database.</description>
		<content:encoded><![CDATA[<p>Martin,</p>
<p>Yes to both, at least in theory. </p>
<p>To limit posts to a certain category I would add another line to the database query.  Something like AND post_category = &#8216;DVD&#8217;, this would exclude all other categories.  I&#8217;m not sure how the database is structured off the top of my head so you would need to find what table and column that info is kept in.  Let me know if you need help with that.</p>
<p>Another possible solution would be to use a conditional tag like if(is_category(&#8217;DVD&#8217;) { //do stuff }  Not sure if it would work but it would be easy to try out.</p>
<p>For the_title() I would do something similar.  Use a database query to match the title with any other posts with the same title.  Like WHERE post_title = p.post_title AND p.ID != $post-&gt;ID.  All you need is to match the titles in the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://curtishenson.com/write-your-own-related-posts-plugin/#comment-418</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 15 Apr 2008 18:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=108#comment-418</guid>
		<description>Hi Curtis,

Would it be possible to
- limit related posts to those from a certain category
- relate posts based on the_title instead of tags
?</description>
		<content:encoded><![CDATA[<p>Hi Curtis,</p>
<p>Would it be possible to<br />
- limit related posts to those from a certain category<br />
- relate posts based on the_title instead of tags<br />
?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://curtishenson.com/write-your-own-related-posts-plugin/#comment-412</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 14 Apr 2008 19:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=108#comment-412</guid>
		<description>Excellent stuff! ;-)</description>
		<content:encoded><![CDATA[<p>Excellent stuff! ;-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
