<?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: Custom Post Limits v2.6</title>
	<atom:link href="http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/</link>
	<description>pro-gram-mer: n. a person who converts coffee into code</description>
	<lastBuildDate>Sun, 26 Feb 2012 18:20:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-479793</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 07 Feb 2012 05:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-479793</guid>
		<description>@Lesandro: Thanks for the bug submission and the fix! Implemented in v3.6.</description>
		<content:encoded><![CDATA[<p>@Lesandro: Thanks for the bug submission and the fix! Implemented in v3.6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-479792</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 07 Feb 2012 05:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-479792</guid>
		<description>@Gunnar: Try v3.6 of the plugin. Now by default it does not enable support for defining limits for individual authors/categories/tags, which could cause the server to time out or the browser to become unhappy if a site had a lot of authors, categories, and/or tags.</description>
		<content:encoded><![CDATA[<p>@Gunnar: Try v3.6 of the plugin. Now by default it does not enable support for defining limits for individual authors/categories/tags, which could cause the server to time out or the browser to become unhappy if a site had a lot of authors, categories, and/or tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-479791</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 07 Feb 2012 05:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-479791</guid>
		<description>@Bill: If you happen to stop by again, let me know if this is still an issue with the latest version of the plugin (current v3.6).</description>
		<content:encoded><![CDATA[<p>@Bill: If you happen to stop by again, let me know if this is still an issue with the latest version of the plugin (current v3.6).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-479790</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 07 Feb 2012 05:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-479790</guid>
		<description>@Paul: As a belated follow-up, your requests was added to v3.5 of the plugin. Each section that can have its own custom post limit now also has the ability to separately define the front page limit for that section. So your front page can show 3 posts, whereas pages 2+ could be set to show 10 each.</description>
		<content:encoded><![CDATA[<p>@Paul: As a belated follow-up, your requests was added to v3.5 of the plugin. Each section that can have its own custom post limit now also has the ability to separately define the front page limit for that section. So your front page can show 3 posts, whereas pages 2+ could be set to show 10 each.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro Lucarella</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-472661</link>
		<dc:creator>Leandro Lucarella</dc:creator>
		<pubDate>Sat, 03 Sep 2011 15:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-472661</guid>
		<description>I&#039;m using version 3.5 and getting a notice when using the plug-in. Here is a trivial patch to fix it:

&lt;code&gt;
commit d8585f6f239133d0e1b3892b4f80eda87fb4809e
Author: Leandro Lucarella &lt;llucax@gmail.com&gt;
Date:   Sat Sep 3 12:35:39 2011 -0300

    Custom Post Limits: Avoid a notice message

diff --git a/wp-content/plugins/custom-post-limits/custom-post-limits.php b/wp-content/plugins/custom-post-limits/custom-post-limits.php
index d90c468..a6eb437 100644
--- a/wp-content/plugins/custom-post-limits/custom-post-limits.php
+++ b/wp-content/plugins/custom-post-limits/custom-post-limits.php
@@ -385,7 +385,7 @@ JS;
                        $this-&gt;get_categories();
                        foreach ( $this-&gt;categories as $cat ) {
                                $opt = &#039;categories_&#039; . $cat-&gt;cat_ID . &#039;_limit&#039;;
-                               if ( $options[$opt] &amp;&amp;
+                               if ( isset($options[$opt]) &amp;&amp; $options[$opt] &amp;&amp;
                                        ( $query_vars[&#039;cat&#039;] == $cat-&gt;cat_ID &#124;&#124; $query_vars[&#039;category_name&#039;] == $cat-&gt;slug &#124;&#124;
                                                preg_match( &quot;/\/{$cat-&gt;slug}\/?$/&quot;, $query_vars[&#039;category_name&#039;] ) ) ) {
                                        $limit = $options[$opt];
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m using version 3.5 and getting a notice when using the plug-in. Here is a trivial patch to fix it:</p>
<p><pre><code>
commit d8585f6f239133d0e1b3892b4f80eda87fb4809e
Author: Leandro Lucarella &lt;llucax@gmail.com&gt;
Date:   Sat Sep 3 12:35:39 2011 -0300

    Custom Post Limits: Avoid a notice message

diff --git a/wp-content/plugins/custom-post-limits/custom-post-limits.php b/wp-content/plugins/custom-post-limits/custom-post-limits.php
index d90c468..a6eb437 100644
--- a/wp-content/plugins/custom-post-limits/custom-post-limits.php
+++ b/wp-content/plugins/custom-post-limits/custom-post-limits.php
@@ -385,7 +385,7 @@ JS;
                        $this-&gt;get_categories();
                        foreach ( $this-&gt;categories as $cat ) {
                                $opt = &#039;categories_&#039; . $cat-&gt;cat_ID . &#039;_limit&#039;;
-                               if ( $options[$opt] &amp;&amp;
+                               if ( isset($options[$opt]) &amp;&amp; $options[$opt] &amp;&amp;
                                        ( $query_vars[&#039;cat&#039;] == $cat-&gt;cat_ID || $query_vars[&#039;category_name&#039;] == $cat-&gt;slug ||
                                                preg_match( &quot;/\/{$cat-&gt;slug}\/?$/&quot;, $query_vars[&#039;category_name&#039;] ) ) ) {
                                        $limit = $options[$opt];
</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar Lindberg Årneby</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-472250</link>
		<dc:creator>Gunnar Lindberg Årneby</dc:creator>
		<pubDate>Tue, 23 Aug 2011 22:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-472250</guid>
		<description>Hi, I have used your excellent plugin for a variety of projects but this time it failed me. The site runs the latest WP release and have over 13 000 posts and multiple authors. Going to the settings page I&#039;m made to wait forever and then it crashes the browser instance in Chrome 13 :(

Could we please please have a new updated version of this excellent tool?</description>
		<content:encoded><![CDATA[<p>Hi, I have used your excellent plugin for a variety of projects but this time it failed me. The site runs the latest WP release and have over 13 000 posts and multiple authors. Going to the settings page I&#8217;m made to wait forever and then it crashes the browser instance in Chrome 13 <img src='http://coffee2code.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Could we please please have a new updated version of this excellent tool?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill L</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-465707</link>
		<dc:creator>Bill L</dc:creator>
		<pubDate>Thu, 19 May 2011 21:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-465707</guid>
		<description>I&#039;m still getting the weird SQL errors as reported on the Custom Post Limits v2.0 post (see my comment from September 12, 2009).  This is with the latest 2.6 version of the plugin.

Here&#039;s an example error:
[19-May-2011 11:57:20] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;1.844674407371E+19, 9223372036854775807&#039; at line 1 for query  SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1  AND ( wp_term_relationships.term_taxonomy_id IN (10) ) AND wp_posts.post_type = &#039;post&#039; AND (wp_posts.post_status = &#039;publish&#039;) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 1.844674407371E+19, 9223372036854775807 made by require, wp, WP-&gt;main, WP-&gt;query_posts, WP_Query-&gt;query, WP_Query-&gt;get_posts</description>
		<content:encoded><![CDATA[<p>I&#8217;m still getting the weird SQL errors as reported on the Custom Post Limits v2.0 post (see my comment from September 12, 2009).  This is with the latest 2.6 version of the plugin.</p>
<p>Here&#8217;s an example error:<br />
[19-May-2011 11:57:20] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8217;1.844674407371E+19, 9223372036854775807&#8242; at line 1 for query  SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1  AND ( wp_term_relationships.term_taxonomy_id IN (10) ) AND wp_posts.post_type = &#8216;post&#8217; AND (wp_posts.post_status = &#8216;publish&#8217;) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 1.844674407371E+19, 9223372036854775807 made by require, wp, WP-&gt;main, WP-&gt;query_posts, WP_Query-&gt;query, WP_Query-&gt;get_posts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FanaticWeb</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-463435</link>
		<dc:creator>FanaticWeb</dc:creator>
		<pubDate>Thu, 07 Apr 2011 23:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-463435</guid>
		<description>I guess this plugin is somewhat dead, just to highlight one point: The plugin is pointless if your theme uses Custom Posts and Taxonomies, this plugin wont even see them, it can only see the default Blog posts...thats too bad.</description>
		<content:encoded><![CDATA[<p>I guess this plugin is somewhat dead, just to highlight one point: The plugin is pointless if your theme uses Custom Posts and Taxonomies, this plugin wont even see them, it can only see the default Blog posts&#8230;thats too bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Hastings</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-461705</link>
		<dc:creator>Paul Hastings</dc:creator>
		<pubDate>Fri, 04 Mar 2011 06:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-461705</guid>
		<description>Oh, and a feature suggestion: Another option to limit the posts on pages that are generated by the is_home() function, but are &lt;b&gt;not&lt;/b&gt; the first page of the site.


Here&#039;s my situation:

With my current site I have the default post limit set to 10. Then I used your plugin to set the &quot;Front Page Limit&quot; to 3.

However, this means that &lt;i&gt;all&lt;/i&gt; of the blog posts generated by is_home() are limited to 3. Generally speaking that means all pages generated by home.php will be limited to 3 posts. Meaning that when I click the &quot;Older Posts&quot; link at the bottom of the front page I&#039;ll only see 3 posts on paulhastings.me/page/2/.

I&#039;d really like to see 10 posts on paulhastings.me/page/2/, paulhastings.me/page/3/, etc. but see only 3 posts on the &lt;i&gt;first&lt;/i&gt; home page.

This situation isn&#039;t to be confused with the &quot;Archives Limit&quot; section which is working fine. A good example would be: paulhastings.me/2011/01/ . That page is generated by archive.php from the is_archive() function.

Hopefully that all made sense. If you have any questions then just shoot me an email.

Thanks,
-Paul</description>
		<content:encoded><![CDATA[<p>Oh, and a feature suggestion: Another option to limit the posts on pages that are generated by the is_home() function, but are <b>not</b> the first page of the site.</p>
<p>Here&#8217;s my situation:</p>
<p>With my current site I have the default post limit set to 10. Then I used your plugin to set the &#8220;Front Page Limit&#8221; to 3.</p>
<p>However, this means that <i>all</i> of the blog posts generated by is_home() are limited to 3. Generally speaking that means all pages generated by home.php will be limited to 3 posts. Meaning that when I click the &#8220;Older Posts&#8221; link at the bottom of the front page I&#8217;ll only see 3 posts on paulhastings.me/page/2/.</p>
<p>I&#8217;d really like to see 10 posts on paulhastings.me/page/2/, paulhastings.me/page/3/, etc. but see only 3 posts on the <i>first</i> home page.</p>
<p>This situation isn&#8217;t to be confused with the &#8220;Archives Limit&#8221; section which is working fine. A good example would be: paulhastings.me/2011/01/ . That page is generated by archive.php from the is_archive() function.</p>
<p>Hopefully that all made sense. If you have any questions then just shoot me an email.</p>
<p>Thanks,<br />
-Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Hastings</title>
		<link>http://coffee2code.com/archives/2010/01/05/custom-post-limits-v2-6/comment-page-1/#comment-461703</link>
		<dc:creator>Paul Hastings</dc:creator>
		<pubDate>Fri, 04 Mar 2011 05:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=481#comment-461703</guid>
		<description>Hi Scott,

I just installed your plugin on my site (just click my name) and it&#039;s working like a charm. You just saved me a ton of time tonight that I would have spent trying to achieve this by customizing my theme.

You might want to release another version number so that people will see that it was updated in 2011. They&#039;re more likely to download it that way.

-Paul</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>I just installed your plugin on my site (just click my name) and it&#8217;s working like a charm. You just saved me a ton of time tonight that I would have spent trying to achieve this by customizing my theme.</p>
<p>You might want to release another version number so that people will see that it was updated in 2011. They&#8217;re more likely to download it that way.</p>
<p>-Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/13 queries in 0.004 seconds using disk: basic
Object Caching 327/327 objects using disk: basic

Served from: coffee2code.com @ 2012-05-21 02:41:03 -->
