<?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: Limit Number Of Posts With WordPress</title>
	<atom:link href="http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/</link>
	<description>News, plugins and themes for blogging applications</description>
	<lastBuildDate>Fri, 10 Feb 2012 01:07:34 +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: Dusky</title>
		<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3123</link>
		<dc:creator>Dusky</dc:creator>
		<pubDate>Sun, 27 Feb 2005 23:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3123</guid>
		<description>There&#039;s a plug-in available that does the same, and a bit more.  Save it to your computer, configure it to match your needs, upload it, and activate it.

http://rephrase.net/miscellany/05/perpage.phps</description>
		<content:encoded><![CDATA[<p>There&#8217;s a plug-in available that does the same, and a bit more.  Save it to your computer, configure it to match your needs, upload it, and activate it.</p>
<p><a href="http://rephrase.net/miscellany/05/perpage.phps" rel="nofollow">http://rephrase.net/miscellany/05/perpage.phps</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3122</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 27 Feb 2005 20:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3122</guid>
		<description>I would need to see all of the code because many times the line number given in the error is not the correct line. Sometimes it&#039;s the line before.  

But it appears you just have an extra &lt;em&gt;&lt;\&lt;/em&gt; somewhere.

Also, you can&#039;t just post the code in a WordPress comment box because WordPress will trash it. Send the index file to me via email.  john at johnhesch dot com.</description>
		<content:encoded><![CDATA[<p>I would need to see all of the code because many times the line number given in the error is not the correct line. Sometimes it&#8217;s the line before.  </p>
<p>But it appears you just have an extra <em>&#60;\</em> somewhere.</p>
<p>Also, you can&#8217;t just post the code in a WordPress comment box because WordPress will trash it. Send the index file to me via email.  john at johnhesch dot com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mmedia</title>
		<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3121</link>
		<dc:creator>mmedia</dc:creator>
		<pubDate>Sun, 27 Feb 2005 20:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3121</guid>
		<description>Thanks for your answer, John, but I have this in the code:

&quot;&lt;?php static $ctr = 0;
if ($ctr == &quot;1&quot;) { break; }
else { 
&lt;?php while (have_posts()) : the_post(); ?&gt;
} ?&gt;

and I have this message:

&quot;Parse error: parse error, unexpected &#039;&lt;&#039; in /home/proyecto/public_html/sol/wp-content/themes/sol/index.php on line 60&quot;

line 60 is &quot;&lt;?php while (have_posts()) : the_post(); ?&gt;&quot;

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for your answer, John, but I have this in the code:</p>
<p>&#8220;< ?php static $ctr = 0;<br />
if ($ctr == "1") { break; }<br />
else {<br />
<?php while (have_posts()) : the_post(); ?><br />
} ?></p>
<p>and I have this message:</p>
<p>&#8220;Parse error: parse error, unexpected &#8216;< ' in /home/proyecto/public_html/sol/wp-content/themes/sol/index.php on line 60"</p>
<p>line 60 is "<?php while (have_posts()) : the_post(); ?>&#8221;</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3120</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 27 Feb 2005 16:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3120</guid>
		<description>You need to add the first snippet of code at the beginning of your loop right after

&lt;?php while (have_posts()) : the_post(); ?&gt;

then add &lt;?php $ctr++; } ?&amp;#62 right before the &amp;#60?php endwhile; ?&gt;

That should do it for you.  Also, be sure to change the &lt;em&gt;X&lt;/em&gt; to the number of posts you want displayed on the index.php page.</description>
		<content:encoded><![CDATA[<p>You need to add the first snippet of code at the beginning of your loop right after</p>
<p>&#60;?php while (have_posts()) : the_post(); ?&#62;</p>
<p>then add &#60;?php $ctr++; } ?&#62 right before the &#60?php endwhile; ?&#62;</p>
<p>That should do it for you.  Also, be sure to change the <em>X</em> to the number of posts you want displayed on the index.php page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mmedia</title>
		<link>http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3113</link>
		<dc:creator>mmedia</dc:creator>
		<pubDate>Sun, 27 Feb 2005 11:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloggingpro.com/archives/2005/02/26/limit-number-of-posts-with-wordpress/#comment-3113</guid>
		<description>Hi, do you know what code must we insert inside &quot;else { ?&gt;&quot;. I&#039;m tried it, but int gives me many &quot;parsers unexpected &#039;{&#039; or &#039;&lt;&#039; errors&quot;.

Sorry by this question, but Justin doesn&#039;t allow comments in his blog.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, do you know what code must we insert inside &#8220;else { ?>&#8221;. I&#8217;m tried it, but int gives me many &#8220;parsers unexpected &#8216;{&#8216; or &#8216;<&#8216; errors&#8221;.</p>
<p>Sorry by this question, but Justin doesn&#8217;t allow comments in his blog.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

