<?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: Display a selected number of posts from one category in the sidebar</title>
	<atom:link href="http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Thu, 26 Jan 2012 06:40:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Chief</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-62223</link>
		<dc:creator>Chief</dc:creator>
		<pubDate>Thu, 17 Mar 2011 22:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-62223</guid>
		<description>What widget do you use for your &#039;Subscribe&#039; box?</description>
		<content:encoded><![CDATA[<p>What widget do you use for your &#8216;Subscribe&#8217; box?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasir</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-62113</link>
		<dc:creator>nasir</dc:creator>
		<pubDate>Thu, 03 Feb 2011 08:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-62113</guid>
		<description>Use this in the sidebar to display a defined number of posts from a  specified category. Where it says “category=6? replace the 6 with the  relevant category ID number, and where it says “numberposts=5? replace  the 5 with the number of posts that you want to appear.</description>
		<content:encoded><![CDATA[<p>Use this in the sidebar to display a defined number of posts from a  specified category. Where it says “category=6? replace the 6 with the  relevant category ID number, and where it says “numberposts=5? replace  the 5 with the number of posts that you want to appear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaydev</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61206</link>
		<dc:creator>jaydev</dc:creator>
		<pubDate>Wed, 19 May 2010 06:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61206</guid>
		<description>yah, its weird. using the code above disables the_excerpt and the_content and only shows the_title and i think its just for the index.php
 
hope someone can have the solution.</description>
		<content:encoded><![CDATA[<p>yah, its weird. using the code above disables the_excerpt and the_content and only shows the_title and i think its just for the index.php<br />
 <br />
hope someone can have the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheridan</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61121</link>
		<dc:creator>Sheridan</dc:creator>
		<pubDate>Mon, 26 Apr 2010 17:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61121</guid>
		<description>Hi again,
I was able to get the code working on my site without error! Yea! Now I&#039;m trying to customize it to fit my needs more.
My clients wants the post excerpt to show after the title. I used the code found on the WP docs to display the excerpt but rather than pulling the excerpt of the post your code is pulling it&#039;s pulling the first post shown on the page.
I added:
&lt;?php the_excerpt(); ?&gt;

Can you help me with this? Thanks
 </description>
		<content:encoded><![CDATA[<p>Hi again,<br />
I was able to get the code working on my site without error! Yea! Now I&#8217;m trying to customize it to fit my needs more.<br />
My clients wants the post excerpt to show after the title. I used the code found on the WP docs to display the excerpt but rather than pulling the excerpt of the post your code is pulling it&#8217;s pulling the first post shown on the page.<br />
I added:<br />
&lt;?php the_excerpt(); ?&gt;</p>
<p>Can you help me with this? Thanks<br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vali</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61115</link>
		<dc:creator>Vali</dc:creator>
		<pubDate>Mon, 26 Apr 2010 10:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61115</guid>
		<description>Hi,
 
I am getting an error. I dont have a list of posts, instead the code creates for me another box with the next link. Check the link for website please. What is worng?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 <br />
I am getting an error. I dont have a list of posts, instead the code creates for me another box with the next link. Check the link for website please. What is worng?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheridan</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61086</link>
		<dc:creator>Sheridan</dc:creator>
		<pubDate>Sat, 24 Apr 2010 00:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-61086</guid>
		<description>I added the code to the area that I want my post to show and I&#039;m getting a parse error. Any ideas? I&#039;d also like it to show an excerpt of the post but I&#039;m not sure how to go about that.</description>
		<content:encoded><![CDATA[<p>I added the code to the area that I want my post to show and I&#8217;m getting a parse error. Any ideas? I&#8217;d also like it to show an excerpt of the post but I&#8217;m not sure how to go about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diana</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60980</link>
		<dc:creator>Diana</dc:creator>
		<pubDate>Fri, 02 Apr 2010 05:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60980</guid>
		<description>How to use this code to show the current category posts, instead suply the category ID?</description>
		<content:encoded><![CDATA[<p>How to use this code to show the current category posts, instead suply the category ID?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NewYorkMustangs.com</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60788</link>
		<dc:creator>NewYorkMustangs.com</dc:creator>
		<pubDate>Thu, 14 Jan 2010 07:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60788</guid>
		<description>Thank you for this, it works great. I&#039;m trying to add a thumbnail from each post, but I can&#039;t seem to get it to load them properly, only the last post on the list. This is the code
 
&lt;.?php $postlist = get_posts(&#039;category=5&amp;numberposts=5&#039;);
 foreach ($postlist as $post) :?.&gt;
 &lt;.?php $thumb_id = get_post_thumbnail_id(); ?.&gt;
 &lt;.li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;.&gt;
 &lt;.?php the_title(); ?.&gt;
 &lt;.br /.&gt;
 &lt;.?php the_post_thumbnail($thumb_id); ?.&gt;
 &lt;./a&gt;&lt;./li.&gt;
 &lt;.?php endforeach; ?.&gt;</description>
		<content:encoded><![CDATA[<p>Thank you for this, it works great. I&#8217;m trying to add a thumbnail from each post, but I can&#8217;t seem to get it to load them properly, only the last post on the list. This is the code<br />
 <br />
&lt;.?php $postlist = get_posts(&#8216;category=5&amp;numberposts=5&#8242;);<br />
 foreach ($postlist as $post) <img src='http://wpgarage.com/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> .&gt;<br />
 &lt;.?php $thumb_id = get_post_thumbnail_id(); ?.&gt;<br />
 &lt;.li&gt;&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;.&gt;<br />
 &lt;.?php the_title(); ?.&gt;<br />
 &lt;.br /.&gt;<br />
 &lt;.?php the_post_thumbnail($thumb_id); ?.&gt;<br />
 &lt;./a&gt;&lt;./li.&gt;<br />
 &lt;.?php endforeach; ?.&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: debater</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60442</link>
		<dc:creator>debater</dc:creator>
		<pubDate>Sat, 07 Nov 2009 04:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60442</guid>
		<description>In my browser, your code is reflected as having a &quot;puzzled&quot; emoticon ;? which is obviously not what you intended (unless your php accepts cute smiley faces as valid syntax!). Would it be possible to put this as a text file download link, so that the formatting is correct? It does not work on my site - it just doesn&#039;t display anything at all.</description>
		<content:encoded><![CDATA[<p>In my browser, your code is reflected as having a &#8220;puzzled&#8221; emoticon ;? which is obviously not what you intended (unless your php accepts cute smiley faces as valid syntax!). Would it be possible to put this as a text file download link, so that the formatting is correct? It does not work on my site &#8211; it just doesn&#8217;t display anything at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sacca</title>
		<link>http://wpgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60418</link>
		<dc:creator>Michael Sacca</dc:creator>
		<pubDate>Wed, 28 Oct 2009 06:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/display-a-selected-number-of-posts-from-one-category/#comment-60418</guid>
		<description>I&#039;d been searching for this script all night.  Thank you for posting it!</description>
		<content:encoded><![CDATA[<p>I&#8217;d been searching for this script all night.  Thank you for posting it!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

