<?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 posts from specific categories on a Page</title>
	<atom:link href="http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/</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: Jap</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-63217</link>
		<dc:creator>Jap</dc:creator>
		<pubDate>Thu, 05 Jan 2012 07:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-63217</guid>
		<description>Ok here is my solution to the pagination issue, I just stumble upon it here:
http://wpquestions.com/question/show/id/1790
Instead of &lt;code&gt;
&lt;/code&gt;
&lt;code&gt;&lt;?php query_posts(&#039;category_name=special_cat&amp;showposts=10&#039;); ?&gt;&lt;/code&gt;
Make it
&lt;?php $paged = (get_query_var(&#039;paged&#039;)) ? get_query_var(&#039;paged&#039;) : 1; query_posts(&#039;posts_per_page=10&amp;cat=8&amp;paged=&#039;.$paged); ?&gt;</description>
		<content:encoded><![CDATA[<p>Ok here is my solution to the pagination issue, I just stumble upon it here:<br />
<a href="http://wpquestions.com/question/show/id/1790" rel="nofollow">http://wpquestions.com/question/show/id/1790</a><br />
Instead of <code><br />
</code><br />
<code>&lt;?php query_posts('category_name=special_cat&amp;showposts=10'); ?&gt;</code><br />
Make it<br />
&lt;?php $paged = (get_query_var(&#8216;paged&#8217;)) ? get_query_var(&#8216;paged&#8217;) : 1; query_posts(&#8216;posts_per_page=10&amp;cat=8&amp;paged=&#8217;.$paged); ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jap</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-63214</link>
		<dc:creator>Jap</dc:creator>
		<pubDate>Thu, 05 Jan 2012 06:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-63214</guid>
		<description>Its 2012 the pagination issue is not yet solve. Any Idea?</description>
		<content:encoded><![CDATA[<p>Its 2012 the pagination issue is not yet solve. Any Idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: syamsu hidayat</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-63144</link>
		<dc:creator>syamsu hidayat</dc:creator>
		<pubDate>Tue, 13 Dec 2011 07:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-63144</guid>
		<description>i try to put this code at home page (index.php)
&lt;?ph&#039;
query_posts(&#039;cat=-990,-1610,-995,-991,-613,-116,-29&amp;showposts=10&#039;);
if (have_posts()) :
while (have_posts()) : the_post(); ?&gt;
thats look OK, but i got error with navigation and search query.
when i try to click next page...we can see only first page again,  when i try to search post using search form...only display list post from first page.
 
 </description>
		<content:encoded><![CDATA[<p>i try to put this code at home page (index.php)<br />
&lt;?ph&#8217;<br />
query_posts(&#8216;cat=-990,-1610,-995,-991,-613,-116,-29&amp;showposts=10&#8242;);<br />
if (have_posts()) :<br />
while (have_posts()) : the_post(); ?&gt;<br />
thats look OK, but i got error with navigation and search query.<br />
when i try to click next page&#8230;we can see only first page again,  when i try to search post using search form&#8230;only display list post from first page.<br />
 <br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anime</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62800</link>
		<dc:creator>Anime</dc:creator>
		<pubDate>Sat, 29 Oct 2011 00:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62800</guid>
		<description>How would you go about implementing this in a &quot;Page&quot; though? Not in a template file. As I&#039;m having trouble getting it to display correctly. </description>
		<content:encoded><![CDATA[<p>How would you go about implementing this in a &#8220;Page&#8221; though? Not in a template file. As I&#8217;m having trouble getting it to display correctly. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62757</link>
		<dc:creator>Raphael</dc:creator>
		<pubDate>Tue, 20 Sep 2011 20:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62757</guid>
		<description>Nevermind my previous post.
I already worked it out.

 Thanks for the code!</description>
		<content:encoded><![CDATA[<p>Nevermind my previous post.<br />
I already worked it out.</p>
<p> Thanks for the code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bibokz</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62742</link>
		<dc:creator>Bibokz</dc:creator>
		<pubDate>Thu, 01 Sep 2011 05:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62742</guid>
		<description>Thanks, I really found it helpful.</description>
		<content:encoded><![CDATA[<p>Thanks, I really found it helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62683</link>
		<dc:creator>Raphael</dc:creator>
		<pubDate>Sat, 30 Jul 2011 14:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62683</guid>
		<description>Hey guys,

I&#039;m a bit of a newbie at wordpress.
But could someone tell me what plugin i should download to make this work?

Thanks! </description>
		<content:encoded><![CDATA[<p>Hey guys,</p>
<p>I&#8217;m a bit of a newbie at wordpress.<br />
But could someone tell me what plugin i should download to make this work?</p>
<p>Thanks! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marieken</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62557</link>
		<dc:creator>Marieken</dc:creator>
		<pubDate>Tue, 05 Jul 2011 10:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62557</guid>
		<description>Hello,
Thanks for the code. This is really what I need form my project!
I just have some trouble getting the &#039;reed-more&#039; link to work. Has this problem occurred before?

My code is:
&lt;?php query_posts(&#039;category_name=blog&amp;showposts=5&#039;); ?&gt;

&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;h3&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;?php the_content(&#039;Read on...&#039;); ?&gt;
&lt;?php endwhile;?&gt;
 
Thank in advance for your help.
Marieken</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thanks for the code. This is really what I need form my project!<br />
I just have some trouble getting the &#8216;reed-more&#8217; link to work. Has this problem occurred before?</p>
<p>My code is:<br />
&lt;?php query_posts(&#8216;category_name=blog&amp;showposts=5&#8242;); ?&gt;</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&lt;h3&gt;&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;<br />
&lt;?php the_content(&#8216;Read on&#8230;&#8217;); ?&gt;<br />
&lt;?php endwhile;?&gt;<br />
 <br />
Thank in advance for your help.<br />
Marieken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62525</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 29 Jun 2011 18:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62525</guid>
		<description>can we copy this code right in a page? with the right plugin of course</description>
		<content:encoded><![CDATA[<p>can we copy this code right in a page? with the right plugin of course</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caro</title>
		<link>http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/#comment-62500</link>
		<dc:creator>Caro</dc:creator>
		<pubDate>Sun, 26 Jun 2011 14:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/wordpress-as-cms/display-posts-from-specific-categories-on-a-page/#comment-62500</guid>
		<description>What If I have an offset within the &lt;?php query_posts-Code? How can I have also the catergory thing added to it?
This is what the code I have looks like:
&lt;?php query_posts(&#039;posts_per_page=2&amp;offset=&#039;.$offset1); ?&gt;
changing it to:
&lt;?php query_posts(&#039;category_name=name&#039;,&#039;posts_per_page=2&amp;offset=&#039;.$offset1); ?&gt;
destroys the offset. What am I doin wrong?
 </description>
		<content:encoded><![CDATA[<p>What If I have an offset within the &lt;?php query_posts-Code? How can I have also the catergory thing added to it?<br />
This is what the code I have looks like:<br />
&lt;?php query_posts(&#8216;posts_per_page=2&amp;offset=&#8217;.$offset1); ?&gt;<br />
changing it to:<br />
&lt;?php query_posts(&#8216;category_name=name&#8217;,'posts_per_page=2&amp;offset=&#8217;.$offset1); ?&gt;<br />
destroys the offset. What am I doin wrong?<br />
 </p>
]]></content:encoded>
	</item>
</channel>
</rss>

