<?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: How to add Related Posts with (or without) Thumbnails to your WP Blog</title>
	<atom:link href="http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/</link>
	<description>Web Design and Hosting</description>
	<lastBuildDate>Mon, 15 Mar 2010 15:30:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: travail sur internet</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-853</link>
		<dc:creator>travail sur internet</dc:creator>
		<pubDate>Fri, 05 Feb 2010 20:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-853</guid>
		<description>I would like to Thanks for the informative post. I really appreciate it. I hope that I can get more benefit from Important blog.</description>
		<content:encoded><![CDATA[<p>I would like to Thanks for the informative post. I really appreciate it. I hope that I can get more benefit from Important blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mw</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-781</link>
		<dc:creator>mw</dc:creator>
		<pubDate>Wed, 23 Sep 2009 19:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-781</guid>
		<description>Perfect!!

is there an way to tell the code just to show the category i am already reading? 
example: a post ist listed in category 1,2,3. when i am reading the post in cat 1, i get the recent posts of cat 1 in the buttom of the page. if i am reading this post in cat 2, i get the posts of cat 2 ...

thx for help ... and sorry for my bad english :-))</description>
		<content:encoded><![CDATA[<p>Perfect!!</p>
<p>is there an way to tell the code just to show the category i am already reading?<br />
example: a post ist listed in category 1,2,3. when i am reading the post in cat 1, i get the recent posts of cat 1 in the buttom of the page. if i am reading this post in cat 2, i get the posts of cat 2 &#8230;</p>
<p>thx for help &#8230; and sorry for my bad english <img src='http://swankwebstyle.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-777</link>
		<dc:creator>Emily</dc:creator>
		<pubDate>Tue, 22 Sep 2009 17:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-777</guid>
		<description>To exclude certain categories from the related posts by category you would insert the category IDs you want excluded before it calls the post&#039;s category.

So line 14 would look like this:

&lt;code&gt;$newQuery = &quot;posts_per_page=6&amp;orderby=rand&amp;cat=-3,-6,-8,&quot; . $catlist;&lt;/code&gt;

The number is the ID of that category and you can list as many as you want. The minus in front means you want it excluded.

To exclude certain categories from the related posts by authors you would insert &quot;cat=-3,-6,-8&quot; into line 9.  

It would look like this:

&lt;code&gt;$newQuery = &quot;posts_per_page=6&amp;cat=-3,-6,-8&amp;orderby=rand&amp;author=&quot; . $authorPosts;&lt;/code&gt;

To exclude categories from the related post by tag, you would insert this line AFTER line 13:

&lt;code&gt;&#039;cat&#039;=&gt;-3,-6,-8,&lt;/code&gt;

For all of these, if you instead wanted it to show ONLY certain categories then it would be the same, but list the category IDs without a minus in front. Then it would find posts ONLY in those categories.</description>
		<content:encoded><![CDATA[<p>To exclude certain categories from the related posts by category you would insert the category IDs you want excluded before it calls the post&#8217;s category.</p>
<p>So line 14 would look like this:</p>
<p><code>$newQuery = "posts_per_page=6&#038;orderby=rand&#038;cat=-3,-6,-8," . $catlist;</code></p>
<p>The number is the ID of that category and you can list as many as you want. The minus in front means you want it excluded.</p>
<p>To exclude certain categories from the related posts by authors you would insert &#8220;cat=-3,-6,-8&#8243; into line 9.  </p>
<p>It would look like this:</p>
<p><code>$newQuery = "posts_per_page=6&#038;cat=-3,-6,-8&#038;orderby=rand&#038;author=" . $authorPosts;</code></p>
<p>To exclude categories from the related post by tag, you would insert this line AFTER line 13:</p>
<p><code>'cat'=>-3,-6,-8,</code></p>
<p>For all of these, if you instead wanted it to show ONLY certain categories then it would be the same, but list the category IDs without a minus in front. Then it would find posts ONLY in those categories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mw</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-768</link>
		<dc:creator>mw</dc:creator>
		<pubDate>Mon, 21 Sep 2009 21:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-768</guid>
		<description>hi,

nice code! is there a way to exclude some categories from the list?

thx for help!!
mw</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>nice code! is there a way to exclude some categories from the list?</p>
<p>thx for help!!<br />
mw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesse</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-746</link>
		<dc:creator>jesse</dc:creator>
		<pubDate>Fri, 11 Sep 2009 22:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-746</guid>
		<description>I have custom posts (using custom field templates) that are used for music releases in cd format. I wanted each post in the cd_release category to show other cd releases on the single.php page and this works perfectly. I tried some plugins but they seemed to be more work finding any documentation. Thanks for sharing this.</description>
		<content:encoded><![CDATA[<p>I have custom posts (using custom field templates) that are used for music releases in cd format. I wanted each post in the cd_release category to show other cd releases on the single.php page and this works perfectly. I tried some plugins but they seemed to be more work finding any documentation. Thanks for sharing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-618</link>
		<dc:creator>Emily</dc:creator>
		<pubDate>Wed, 22 Jul 2009 16:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-618</guid>
		<description>It sounds like you just put the image URL in the custom field instead of the full image code.  Check your custom field value and make sure it looks something like this:

&lt; img src=&quot;http://path/to/your/thumbnail.jpg&quot; class=&quot;alignleft thumbnail&quot; alt=&quot;Image Name&quot; / &gt;

</description>
		<content:encoded><![CDATA[<p>It sounds like you just put the image URL in the custom field instead of the full image code.  Check your custom field value and make sure it looks something like this:</p>
<p>< img src="http://path/to/your/thumbnail.jpg" class="alignleft thumbnail" alt="Image Name" / ></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: razv4n</title>
		<link>http://swankwebstyle.com/blog/2009/07/20/how-to-add-related-posts-with-or-without-thumbnails-to-your-wp-blog/comment-page-1/#comment-617</link>
		<dc:creator>razv4n</dc:creator>
		<pubDate>Wed, 22 Jul 2009 10:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://swankwebstyle.com/blog/?p=177#comment-617</guid>
		<description>Pleaze help me , i did everithing corect but it doesn&#039;t show my imeges , unly theyr URL . See my website :www.desprefilme.com</description>
		<content:encoded><![CDATA[<p>Pleaze help me , i did everithing corect but it doesn&#8217;t show my imeges , unly theyr URL . See my website :www.desprefilme.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>
