<?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: WordPress excerpts just the way you want them</title>
	<atom:link href="http://blogmum.com/2009/04/wordpress-excerpts-just-the-way-you-want-them/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogmum.com/2009/04/wordpress-excerpts-just-the-way-you-want-them/</link>
	<description>WordPress made easy</description>
	<lastBuildDate>Fri, 30 Jul 2010 00:19:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sue</title>
		<link>http://blogmum.com/2009/04/wordpress-excerpts-just-the-way-you-want-them/#comment-408</link>
		<dc:creator>Sue</dc:creator>
		<pubDate>Sun, 24 May 2009 16:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogmum.com/?p=246#comment-408</guid>
		<description>Hi Tom, 
Thanks for the comment. The reason strip_tags doesn&#039;t work is that it only removes HTML tags, not WP&#039;s &quot;pseudo-tags&quot; like the caption one. So you&#039;ll need to add an extra line of code, just before the strip_tags one. Try this:
&lt;code&gt;$text = preg_replace(&#039;`\[[^\]]*\]`&#039;,&#039;&#039;,$text); &lt;/code&gt;
That will remove everything in square brackets - if you need something a bit more subtle, gimme a shout.</description>
		<content:encoded><![CDATA[<p>Hi Tom,<br />
Thanks for the comment. The reason strip_tags doesn't work is that it only removes HTML tags, not WP's "pseudo-tags" like the caption one. So you'll need to add an extra line of code, just before the strip_tags one. Try this:<br />
<code>$text = preg_replace('`\[[^\]]*\]`','',$text); </code><br />
That will remove everything in square brackets - if you need something a bit more subtle, gimme a shout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom B</title>
		<link>http://blogmum.com/2009/04/wordpress-excerpts-just-the-way-you-want-them/#comment-407</link>
		<dc:creator>Tom B</dc:creator>
		<pubDate>Sun, 24 May 2009 15:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogmum.com/?p=246#comment-407</guid>
		<description>Hi

Of all the solutions for stripping the_excerpt I like yours best, but, I have a problem with posts with attachments, for some reason strip_tags() doesn&#039;t strip a part of the tags and I get this text (for example) instead of the excerpt:

[caption id=&quot;attachment_1083&quot; align=&quot;alignright&quot; width=&quot;240&quot;

Any ideas why that should happen?

Thanks 
Tom.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Of all the solutions for stripping the_excerpt I like yours best, but, I have a problem with posts with attachments, for some reason strip_tags() doesn't strip a part of the tags and I get this text (for example) instead of the excerpt:</p>
<p>[caption id="attachment_1083" align="alignright" width="240"</p>
<p>Any ideas why that should happen?</p>
<p>Thanks<br />
Tom.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
