<?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: Removing Images from a WordPress Post</title>
	<atom:link href="http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Mon, 06 Sep 2010 02:10:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Chris Schuld</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2656</link>
		<dc:creator>Chris Schuld</dc:creator>
		<pubDate>Thu, 26 Aug 2010 18:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2656</guid>
		<description>All:


You would place this in the theme php source for maybe home.php or index.php ... replace the current &quot;get_content();&quot; with the source above.

Good luck, Chris</description>
		<content:encoded><![CDATA[<p>All:</p>
<p>You would place this in the theme php source for maybe home.php or index.php &#8230; replace the current &#8220;get_content();&#8221; with the source above.</p>
<p>Good luck, Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2655</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 26 Aug 2010 18:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2655</guid>
		<description>How to execute this.. ? where to write this script</description>
		<content:encoded><![CDATA[<p>How to execute this.. ? where to write this script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shiva</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2468</link>
		<dc:creator>Shiva</dc:creator>
		<pubDate>Tue, 10 Aug 2010 11:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2468</guid>
		<description>Sorry for a nooby question, Where must I add this ?
I&#039;m quite new to these things :P
Please help me :)

Thanks.</description>
		<content:encoded><![CDATA[<p>Sorry for a nooby question, Where must I add this ?<br />
I&#8217;m quite new to these things <img src='http://chrisschuld.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
Please help me <img src='http://chrisschuld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sougata</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2382</link>
		<dc:creator>Sougata</dc:creator>
		<pubDate>Mon, 02 Aug 2010 06:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2382</guid>
		<description>Hi

in the post the code is getting filtered... here trying to place with space..

&#039;/( &lt;i&gt; ] * &gt; ) /&#039;</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>in the post the code is getting filtered&#8230; here trying to place with space..</p>
<p>&#8216;/( <i> ] * &gt; ) /&#8217;</i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sougata</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2381</link>
		<dc:creator>Sougata</dc:creator>
		<pubDate>Mon, 02 Aug 2010 06:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2381</guid>
		<description>Hi
while trying to remove the first image from the the_content() with the above said process, it was not able to remove the first image after several try.

I had simply replaced ..
preg_replace(&#039;/]+./’,”, ob_get_contents(),1); with the one below..

preg_replace(&#039;/(]*&gt;)/&#039;,&#039;&#039;, ob_get_contents(),1);

the and the final code works like charm! :-)

here it is...

&lt;?php
ob_start();
the_content(&#039;Read the full post&#039;,true);
$postOutput = preg_replace(&#039;/(]*&gt;)/&#039;,&#039;&#039;, ob_get_contents(),1);
ob_end_clean();
echo $postOutput;
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi<br />
while trying to remove the first image from the the_content() with the above said process, it was not able to remove the first image after several try.</p>
<p>I had simply replaced ..<br />
preg_replace(&#8216;/]+./’,”, ob_get_contents(),1); with the one below..</p>
<p>preg_replace(&#8216;/(]*&gt;)/&#8217;,&#8221;, ob_get_contents(),1);</p>
<p>the and the final code works like charm! <img src='http://chrisschuld.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>here it is&#8230;</p>
<p>&lt;?php<br />
ob_start();<br />
the_content(&#039;Read the full post&#039;,true);<br />
$postOutput = preg_replace(&#039;/(]*&gt;)/&#8217;,&#8221;, ob_get_contents(),1);<br />
ob_end_clean();<br />
echo $postOutput;<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: footballclub</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2359</link>
		<dc:creator>footballclub</dc:creator>
		<pubDate>Fri, 30 Jul 2010 13:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2359</guid>
		<description>Is there a way to also remove the caption div around the image (wp-caption)? 10x.</description>
		<content:encoded><![CDATA[<p>Is there a way to also remove the caption div around the image (wp-caption)? 10x.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh Ruparel</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2325</link>
		<dc:creator>Mahesh Ruparel</dc:creator>
		<pubDate>Tue, 27 Jul 2010 05:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2325</guid>
		<description>[...] http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/ &lt;?php    ob_start();    the_content(&#8216;Read the full post&#8217;,true);    $postOutput = preg_replace(&#8216;/&lt;img[^&gt;]+./&#8217;,&#8221;, ob_get_contents());    ob_end_clean();    echo $postOutput; ?&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/" rel="nofollow">http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/</a> &lt;?php    ob_start();    the_content(&#8216;Read the full post&#8217;,true);    $postOutput = preg_replace(&#8216;/&lt;img[^&gt;]+./&#8217;,&#8221;, ob_get_contents());    ob_end_clean();    echo $postOutput; ?&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfuste</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-2058</link>
		<dc:creator>jfuste</dc:creator>
		<pubDate>Mon, 14 Jun 2010 15:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-2058</guid>
		<description>Perfect solution for me! Thank you Chris!</description>
		<content:encoded><![CDATA[<p>Perfect solution for me! Thank you Chris!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kazaf</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-1809</link>
		<dc:creator>Kazaf</dc:creator>
		<pubDate>Sat, 08 May 2010 14:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-1809</guid>
		<description>Great tutorial, really helful! Cheers^^ 
Besides, it works with any other function.</description>
		<content:encoded><![CDATA[<p>Great tutorial, really helful! Cheers^^<br />
Besides, it works with any other function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rizwan</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comment-1802</link>
		<dc:creator>rizwan</dc:creator>
		<pubDate>Thu, 06 May 2010 09:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://chrisschuld.com/?p=47#comment-1802</guid>
		<description>thank you soo much.</description>
		<content:encoded><![CDATA[<p>thank you soo much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
