<?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: Two Ways to Limit the Number of Posts without a Plugin</title>
	<atom:link href="http://digwp.com/2009/12/limit-posts-without-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/12/limit-posts-without-plugin/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 15 May 2012 08:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jason Fonceca</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3646</link>
		<dc:creator>Jason Fonceca</dc:creator>
		<pubDate>Tue, 09 Mar 2010 15:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3646</guid>
		<description>Perfect! Exactly what I was looking for. I searched elsewhere and found people going extremely in depth into The Loop, and setting up all kinds of queries + variables... I really love the i++ counter technique. Thanks man :)</description>
		<content:encoded><![CDATA[<p>Perfect! Exactly what I was looking for. I searched elsewhere and found people going extremely in depth into The Loop, and setting up all kinds of queries + variables&#8230; I really love the i++ counter technique. Thanks man :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canon</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3441</link>
		<dc:creator>Canon</dc:creator>
		<pubDate>Thu, 18 Feb 2010 21:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3441</guid>
		<description>Nice post, it is similar to others I have seen, however with the Method 1, I have tried, it does limit the number of posts shown, however, when using the next page, the difference in posts shown are now missing.  For example, 10 posts, limit to 5 posts.  Page 1 will show posts 1 through 10.  Page 2 will show posts 11 through 20.  When limiting the number to 5, Page 1 will show 1 through 5, Page 2 will show 11 through 15.  Any thoughts?  

I just tested Method 2, with the same results. 

Unless I am overlooking something ....  the posts are limited, but something else is missing.</description>
		<content:encoded><![CDATA[<p>Nice post, it is similar to others I have seen, however with the Method 1, I have tried, it does limit the number of posts shown, however, when using the next page, the difference in posts shown are now missing.  For example, 10 posts, limit to 5 posts.  Page 1 will show posts 1 through 10.  Page 2 will show posts 11 through 20.  When limiting the number to 5, Page 1 will show 1 through 5, Page 2 will show 11 through 15.  Any thoughts?  </p>
<p>I just tested Method 2, with the same results. </p>
<p>Unless I am overlooking something &#8230;.  the posts are limited, but something else is missing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3251</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 01 Feb 2010 01:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3251</guid>
		<description>Thanks - fixed! :)

&lt;code&gt;WP_Query&lt;/code&gt; is certainly useful, but &lt;code&gt;query_posts&lt;/code&gt; works just as well ;)</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; fixed! :)</p>
<p><code>WP_Query</code> is certainly useful, but <code>query_posts</code> works just as well ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3250</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 01 Feb 2010 01:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3250</guid>
		<description>Wow, you&#039;re basing your decision on a single post? We share tons of great content with the community, both here at digwp.com and at our personal sites. Obviously not everything we post is going to be useful to everybody, but it doesn&#039;t stop us from trying to help.</description>
		<content:encoded><![CDATA[<p>Wow, you&#8217;re basing your decision on a single post? We share tons of great content with the community, both here at digwp.com and at our personal sites. Obviously not everything we post is going to be useful to everybody, but it doesn&#8217;t stop us from trying to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gringer</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3241</link>
		<dc:creator>Gringer</dc:creator>
		<pubDate>Sat, 30 Jan 2010 17:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3241</guid>
		<description>not &#8216;&lt;code&gt;posts_per_page&lt;/code&gt;&#8217; but &#8216;&lt;code&gt;showposts&lt;/code&gt;&#8217; in the explanation of Method 2 ;-)

And for what it&#039;s worth, Id use &lt;code&gt;WP_Query&lt;/code&gt; and never &lt;code&gt;query_posts()&lt;/code&gt;.

http://codex.wordpress.org/Function_Reference/WP_Query</description>
		<content:encoded><![CDATA[<p>not &lsquo;<code>posts_per_page</code>&rsquo; but &lsquo;<code>showposts</code>&rsquo; in the explanation of Method 2 ;-)</p>
<p>And for what it&#8217;s worth, Id use <code>WP_Query</code> and never <code>query_posts()</code>.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/WP_Query" rel="nofollow">http://codex.wordpress.org/Function_Reference/WP_Query</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jogi</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3237</link>
		<dc:creator>Jogi</dc:creator>
		<pubDate>Fri, 29 Jan 2010 19:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3237</guid>
		<description>I am sorry to say that this post is a good reason to NOT buy the book. The first method results in a blank page. The second method breaks the pagination, exactly like Pavel wrote. Both methods are useless. A waste of time.</description>
		<content:encoded><![CDATA[<p>I am sorry to say that this post is a good reason to NOT buy the book. The first method results in a blank page. The second method breaks the pagination, exactly like Pavel wrote. Both methods are useless. A waste of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-3186</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-3186</guid>
		<description>I&#039;ve come across a problem using query_posts recently where if the posts_per_page is set to less then the Max posts per page set in the admin area the &quot;older entries&quot; and &quot;newer entries&quot; links return a 404 error. It seems to break pagination.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve come across a problem using query_posts recently where if the posts_per_page is set to less then the Max posts per page set in the admin area the &#8220;older entries&#8221; and &#8220;newer entries&#8221; links return a 404 error. It seems to break pagination.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lawrence77</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-2941</link>
		<dc:creator>lawrence77</dc:creator>
		<pubDate>Wed, 30 Dec 2009 23:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-2941</guid>
		<description>wow, thats great... ;)

thanks man, it comes in handy...</description>
		<content:encoded><![CDATA[<p>wow, thats great&#8230; ;)</p>
<p>thanks man, it comes in handy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-2870</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 22 Dec 2009 05:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-2870</guid>
		<description>Yeh, the first method is for specific cases and isn&#039;t always going to gel. But the second method is sound and used successfully on many sites. Remember that &lt;code&gt;query_posts&lt;/code&gt; is using a custom query and so any default query parameters (such as the category) will need to be respecified like so:

&lt;code&gt;&amp;cat=n&lt;/code&gt;

..where &quot;n&quot; is the number of your category. 

I hinted at this situation in the last couple of paragraphs, but perhaps more is needed..</description>
		<content:encoded><![CDATA[<p>Yeh, the first method is for specific cases and isn&#8217;t always going to gel. But the second method is sound and used successfully on many sites. Remember that <code>query_posts</code> is using a custom query and so any default query parameters (such as the category) will need to be respecified like so:</p>
<p><code>&amp;cat=n</code></p>
<p>..where &#8220;n&#8221; is the number of your category. </p>
<p>I hinted at this situation in the last couple of paragraphs, but perhaps more is needed..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonya Lynn</title>
		<link>http://digwp.com/2009/12/limit-posts-without-plugin/#comment-2866</link>
		<dc:creator>Sonya Lynn</dc:creator>
		<pubDate>Tue, 22 Dec 2009 01:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1046#comment-2866</guid>
		<description>Was excited to give this a try...

the first method didn&#039;t work for me at all. Broke my site, returned a blank white page...

the second method, I applied to a custom category-5.php, and worked, but showed posts that aren&#039;t in that particular category. (shows all posts) 

meh.</description>
		<content:encoded><![CDATA[<p>Was excited to give this a try&#8230;</p>
<p>the first method didn&#8217;t work for me at all. Broke my site, returned a blank white page&#8230;</p>
<p>the second method, I applied to a custom category-5.php, and worked, but showed posts that aren&#8217;t in that particular category. (shows all posts) </p>
<p>meh.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

