<?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: How to Limit Content in WordPress</title>
	<atom:link href="http://www.wplancer.com/how-to-limit-content-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wplancer.com/how-to-limit-content-in-wordpress/</link>
	<description>WordPress Freelance Designer &#38; Developer</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sumon</title>
		<link>http://www.wplancer.com/how-to-limit-content-in-wordpress/#comment-1934</link>
		<dc:creator>Sumon</dc:creator>
		<pubDate>Fri, 30 Jul 2010 20:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.wplancer.com/?p=905#comment-1934</guid>
		<description>Great Tricks @ Thanks for share this @!</description>
		<content:encoded><![CDATA[<p>Great Tricks @ Thanks for share this @!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graphicbeacon</title>
		<link>http://www.wplancer.com/how-to-limit-content-in-wordpress/#comment-1655</link>
		<dc:creator>graphicbeacon</dc:creator>
		<pubDate>Sun, 14 Feb 2010 21:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.wplancer.com/?p=905#comment-1655</guid>
		<description>It seems your comment form has cut off some of some of my code. Delete this if im wrong.</description>
		<content:encoded><![CDATA[<p>It seems your comment form has cut off some of some of my code. Delete this if im wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graphicbeacon</title>
		<link>http://www.wplancer.com/how-to-limit-content-in-wordpress/#comment-1654</link>
		<dc:creator>graphicbeacon</dc:creator>
		<pubDate>Sun, 14 Feb 2010 21:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.wplancer.com/?p=905#comment-1654</guid>
		<description>There is a bug with Studiopress&#039; approach. Either you or they did not escape some of the double quotes in the echo statements, resulting in some echo statement treated by php as a normal string(check the code). I made some corrections and displayed it as follows, adding the [title] and [rel] attributes so that it will help with validation:
{code type=php}
&#039;, &#039;]]&gt;&#039;, $content);
$content = strip_tags($content);

if (strlen($_GET[&#039;p&#039;]) &gt; 0) {
echo &quot;&quot;;
echo $content;
?&gt;
&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;Read More &#8594;
$max_char) &amp;&amp; ($espacio = strpos($content, &quot; &quot;, $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo &quot;&quot;;
echo $content;
echo &quot;...&quot;;
?&gt; 
&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;
&lt;?php
}

else {
echo &quot;&quot;;
echo $content;
?&gt;
&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;Read More &#8594;
{/code}</description>
		<content:encoded><![CDATA[<p>There is a bug with Studiopress&#8217; approach. Either you or they did not escape some of the double quotes in the echo statements, resulting in some echo statement treated by php as a normal string(check the code). I made some corrections and displayed it as follows, adding the [title] and [rel] attributes so that it will help with validation:</p>
<pre class="php">
&#039;, &#039;]]&gt;&#039;, $content);
$content = strip_tags($content);
if (strlen($_GET[&#039;p&#039;]) &gt; 0) {
echo &quot;&quot;;
echo $content;
?&gt;
<span class="htmlOtherTag">&lt;a href=<span class="htmlAttributeValue">&quot;&quot;</span> rel=<span class="htmlAttributeValue">&quot;bookmark&quot;</span> title=<span class="htmlAttributeValue">&quot;Permanent Link to &quot;</span>&gt;</span>Read More <span class="htmlSpecialChar">&amp;rarr;</span>
$max_char) <span class="htmlSpecialChar">&amp;amp;</span><span class="htmlSpecialChar">&amp;amp;</span> ($espacio = strpos($content, &quot; &quot;, $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo &quot;&quot;;
echo $content;
echo &quot;...&quot;;
?&gt;
<span class="htmlOtherTag">&lt;a href=<span class="htmlAttributeValue">&quot;&quot;</span> rel=<span class="htmlAttributeValue">&quot;bookmark&quot;</span> title=<span class="htmlAttributeValue">&quot;Permanent Link to &quot;</span>&gt;</span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
else </span><span class="phpOperator">{</span>
<span class="phpFunction">echo</span> <span class="phpString">""</span><span class="phpText">;</span>
<span class="phpFunction">echo</span> $content;
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;a href=<span class="htmlAttributeValue">&quot;&quot;</span> rel=<span class="htmlAttributeValue">&quot;bookmark&quot;</span> title=<span class="htmlAttributeValue">&quot;Permanent Link to &quot;</span>&gt;</span>Read More <span class="htmlSpecialChar">&amp;rarr;</span>
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
