<?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: Improving WordPress&#8217; the_excerpt() template tag</title>
	<atom:link href="http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/</link>
	<description>Freelance web and graphic designer, Swindon</description>
	<lastBuildDate>Fri, 26 Feb 2010 09:08:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Richard Sweeney</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-31926</link>
		<dc:creator>Richard Sweeney</dc:creator>
		<pubDate>Sun, 31 Jan 2010 10:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-31926</guid>
		<description>Excellent, this is exactly what I was looking for! Many thanks for the easy to follow post!

I might just mention that the code in the post is extremely difficult to read... Dark blue text on a dark grey background is not an ideal combination!</description>
		<content:encoded><![CDATA[<p>Excellent, this is exactly what I was looking for! Many thanks for the easy to follow post!</p>
<p>I might just mention that the code in the post is extremely difficult to read&#8230; Dark blue text on a dark grey background is not an ideal combination!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-31846</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-31846</guid>
		<description>Great tip, i was in the need for this. Thanks!</description>
		<content:encoded><![CDATA[<p>Great tip, i was in the need for this. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Russakovskii</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-31565</link>
		<dc:creator>Artem Russakovskii</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-31565</guid>
		<description>Aaron, take a look at this ticket http://core.trac.wordpress.org/ticket/10395. It fixes some of the problems described here by introducing extra filters (number of words and the excerpt ending) but it still forces tag stripping.

Just thought I&#039;d let you know.</description>
		<content:encoded><![CDATA[<p>Aaron, take a look at this ticket <a href="http://core.trac.wordpress.org/ticket/10395" rel="nofollow">http://core.trac.wordpress.org/ticket/10395</a>. It fixes some of the problems described here by introducing extra filters (number of words and the excerpt ending) but it still forces tag stripping.</p>
<p>Just thought I&#8217;d let you know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spider M. Mann</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-30514</link>
		<dc:creator>Spider M. Mann</dc:creator>
		<pubDate>Thu, 24 Dec 2009 02:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-30514</guid>
		<description>I have come up with a working solution to the problem of adding a “read more” link (or some sort of anchor tag) to the ‘[...]‘ at the end of the excerpt. I have also included my &#039;balanced tags&#039; solution from above.

I would post it here, but the filters would eat the code, so I posted a short article at my site:
&lt;a href=&quot;http://palehorseinformation.com/2009/12/23/fixing-the-wordpress-excerpt/&quot; rel=&quot;nofollow&quot;&gt;Fixing The Excerpt In WordPress&lt;/a&gt;

If you would like, you can change the &#039;[...]&#039; to &#039;read more&#039; or whatever you would like it to say. I hope you all can stop by and check it out.</description>
		<content:encoded><![CDATA[<p>I have come up with a working solution to the problem of adding a “read more” link (or some sort of anchor tag) to the ‘[...]‘ at the end of the excerpt. I have also included my &#8216;balanced tags&#8217; solution from above.</p>
<p>I would post it here, but the filters would eat the code, so I posted a short article at my site:<br />
<a href="http://palehorseinformation.com/2009/12/23/fixing-the-wordpress-excerpt/" rel="nofollow">Fixing The Excerpt In WordPress</a></p>
<p>If you would like, you can change the &#8216;[...]&#8216; to &#8216;read more&#8217; or whatever you would like it to say. I hope you all can stop by and check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fixing The Excerpt In WordPress &#171; Palehorse Information Services</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-30512</link>
		<dc:creator>Fixing The Excerpt In WordPress &#171; Palehorse Information Services</dc:creator>
		<pubDate>Thu, 24 Dec 2009 02:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-30512</guid>
		<description>[...] best solution we have found to these limitations was provided by Aaron Russell, but this also had just a couple of stumbling blocks, as evidenced by reading through the comments [...]</description>
		<content:encoded><![CDATA[<p>[...] best solution we have found to these limitations was provided by Aaron Russell, but this also had just a couple of stumbling blocks, as evidenced by reading through the comments [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zuri</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-30144</link>
		<dc:creator>Zuri</dc:creator>
		<pubDate>Mon, 14 Dec 2009 21:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-30144</guid>
		<description>For those looking to add an anchor tag to the [...] tag, change your &quot;if&quot; statement to the following. 

if (count($words)&gt; $excerpt_length) {
array_pop($words);
array_push($words, &#039;[...]&#039;);
$text = implode(&#039; &#039;, $words);
echo &quot;&lt;a href=&#039;&quot;;
the_permalink();
echo &quot;&#039;&gt;read more&lt;/a&gt;&quot;;
}

It works for me, except for the fact that I can&#039;t get the &quot;read more&quot; to appear at the end of the excerpt. :-s</description>
		<content:encoded><![CDATA[<p>For those looking to add an anchor tag to the [...] tag, change your &#8220;if&#8221; statement to the following. </p>
<p>if (count($words)&gt; $excerpt_length) {<br />
array_pop($words);<br />
array_push($words, &#8216;[...]&#8216;);<br />
$text = implode(&#8216; &#8216;, $words);<br />
echo &#8220;<a href='";<br />
the_permalink();<br />
echo "'>read more</a>&#8220;;<br />
}</p>
<p>It works for me, except for the fact that I can&#8217;t get the &#8220;read more&#8221; to appear at the end of the excerpt. :-s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayoma</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-29155</link>
		<dc:creator>Ayoma</dc:creator>
		<pubDate>Fri, 20 Nov 2009 05:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-29155</guid>
		<description>Thanks a lot for the clear and easy steps. It saved my time with removing JavaScript &quot;var fbShare = {url: .....&quot; from my site...</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the clear and easy steps. It saved my time with removing JavaScript &#8220;var fbShare = {url: &#8230;..&#8221; from my site&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-28628</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 08 Nov 2009 10:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-28628</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: byK &#8211; Wordpress: Latest Post per Category Homepage</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-27819</link>
		<dc:creator>byK &#8211; Wordpress: Latest Post per Category Homepage</dc:creator>
		<pubDate>Wed, 21 Oct 2009 05:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-27819</guid>
		<description>[...] http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/" rel="nofollow">http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Smart</title>
		<link>http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/comment-page-1/#comment-27583</link>
		<dc:creator>Dan Smart</dc:creator>
		<pubDate>Thu, 15 Oct 2009 14:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronrussell.co.uk/?p=300#comment-27583</guid>
		<description>@marvin - instead of editing the function prototype, you could get the value from a constant or an option somewhere in the WP Admin.

So you could make it either:

define(&#039;EXCERPT_LENGTH&#039;, 25);

improved_trim_excerpt($text) {
$excerpt_length = EXCERPT_LENGTH;
}

or 
improved_trim_excerpt($text) {
$excerpt_length = get_option(&#039;excerpt_length&#039;);
}

(of course you&#039;ll have to add the option first - would be worth creating a plugin to do this, as it&#039;d separate it out. In fact, this might be my next blog post...)</description>
		<content:encoded><![CDATA[<p>@marvin &#8211; instead of editing the function prototype, you could get the value from a constant or an option somewhere in the WP Admin.</p>
<p>So you could make it either:</p>
<p>define(&#8216;EXCERPT_LENGTH&#8217;, 25);</p>
<p>improved_trim_excerpt($text) {<br />
$excerpt_length = EXCERPT_LENGTH;<br />
}</p>
<p>or<br />
improved_trim_excerpt($text) {<br />
$excerpt_length = get_option(&#8216;excerpt_length&#8217;);<br />
}</p>
<p>(of course you&#8217;ll have to add the option first &#8211; would be worth creating a plugin to do this, as it&#8217;d separate it out. In fact, this might be my next blog post&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
