<?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: Retrieve a Post&#8217;s First Image and Resize it with TimThumb</title>
	<atom:link href="http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/</link>
	<description>SEO Consulting</description>
	<lastBuildDate>Tue, 31 Jan 2012 05:01:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rob Davy-Cripwell</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-5438</link>
		<dc:creator>Rob Davy-Cripwell</dc:creator>
		<pubDate>Sun, 10 Jul 2011 15:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-5438</guid>
		<description>You&#039;ve pretty much stopped me from pulling all my hair out!  Thank you very much for this excellent solution!</description>
		<content:encoded><![CDATA[<p>You&#8217;ve pretty much stopped me from pulling all my hair out!  Thank you very much for this excellent solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-4571</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 01 Dec 2010 04:32:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-4571</guid>
		<description>Just found this. It was EXACTLY what I was looking for, and worked perfectly the first time. Thank you!</description>
		<content:encoded><![CDATA[<p>Just found this. It was EXACTLY what I was looking for, and worked perfectly the first time. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-4544</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 29 Oct 2010 00:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-4544</guid>
		<description>Same problem Output is just alt text not image of the first post. 

Function:

function catch_that_image() 
{ global $post, $posts; $first_img = &#039;&#039;; $url = get_bloginfo(&#039;url&#039;); ob_start(); ob_end_clean(); $output = preg_match_all
(&#039;//i&#039;, $post-&gt;post_content, $matches); $first_img = $matches [1] [0];   $not_broken = 
@fopen(&quot;$first_img&quot;,&quot;r&quot;); if(empty($first_img) &#124;&#124; !($not_broken)){ unset($first_img); } else { $first_img = str_replace($url, 
&#039;&#039;, $first_img); } return $first_img; }


Template:
 &lt;img 
src=&quot;/scripts/timthumb.php?src=&amp;h=60&amp;w=60&amp;zc=1&quot; alt=&quot;Link to &quot; class=&quot;thumbnail&quot;/&gt; 

Instead of image thumb I see alt text of the title. 
I see: Link to and the title  as text.</description>
		<content:encoded><![CDATA[<p>Same problem Output is just alt text not image of the first post. </p>
<p>Function:</p>
<p>function catch_that_image()<br />
{ global $post, $posts; $first_img = &#8221;; $url = get_bloginfo(&#8216;url&#8217;); ob_start(); ob_end_clean(); $output = preg_match_all<br />
(&#8216;//i&#8217;, $post-&gt;post_content, $matches); $first_img = $matches [1] [0];   $not_broken =<br />
@fopen(&#8220;$first_img&#8221;,&#8221;r&#8221;); if(empty($first_img) || !($not_broken)){ unset($first_img); } else { $first_img = str_replace($url,<br />
&#8221;, $first_img); } return $first_img; }</p>
<p>Template:<br />
 &lt;img<br />
src=&quot;/scripts/timthumb.php?src=&amp;h=60&amp;w=60&amp;zc=1&#8243; alt=&#8221;Link to &#8221; class=&#8221;thumbnail&#8221;/&gt; </p>
<p>Instead of image thumb I see alt text of the title.<br />
I see: Link to and the title  as text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Unseth</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-4191</link>
		<dc:creator>Joshua Unseth</dc:creator>
		<pubDate>Wed, 11 Aug 2010 20:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-4191</guid>
		<description>@Toure, nope, this works. If you describe what you&#039;re doing, then maybe someone could help you. But if you&#039;re using a WordPress blog, this code works.</description>
		<content:encoded><![CDATA[<p>@Toure, nope, this works. If you describe what you&#8217;re doing, then maybe someone could help you. But if you&#8217;re using a WordPress blog, this code works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toure</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-4189</link>
		<dc:creator>Toure</dc:creator>
		<pubDate>Wed, 11 Aug 2010 20:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-4189</guid>
		<description>Sorry, but this is only outputting the alt instead of the image itself.
Any body any idea how to resolve this issue?</description>
		<content:encoded><![CDATA[<p>Sorry, but this is only outputting the alt instead of the image itself.<br />
Any body any idea how to resolve this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ikalangita</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-2720</link>
		<dc:creator>ikalangita</dc:creator>
		<pubDate>Mon, 02 Aug 2010 07:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-2720</guid>
		<description>Thanks for the tips, i got it worked.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, i got it worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Unseth</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-715</link>
		<dc:creator>Joshua Unseth</dc:creator>
		<pubDate>Sun, 28 Mar 2010 06:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-715</guid>
		<description>@Morten, looks good. I generally try to avoid plugins because of the speed of execution. This is just a little faster. But other than that, good work.</description>
		<content:encoded><![CDATA[<p>@Morten, looks good. I generally try to avoid plugins because of the speed of execution. This is just a little faster. But other than that, good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Skogly</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-714</link>
		<dc:creator>Morten Skogly</dc:creator>
		<pubDate>Sat, 27 Mar 2010 21:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-714</guid>
		<description>I had the same need, and was really stuck on how to do it. I ended up using the Get the image plugin made by Justin Tadlock, but I had to read his code to find out how to get the image url and not just the complete image tag.

I put the code I use on my theme on my blog, would love to get some feedback on it. 

http://pappmaskin.no/2010/03/how-to-make-the-wordpress-plugin-get_the_image-work-with-timthumb/</description>
		<content:encoded><![CDATA[<p>I had the same need, and was really stuck on how to do it. I ended up using the Get the image plugin made by Justin Tadlock, but I had to read his code to find out how to get the image url and not just the complete image tag.</p>
<p>I put the code I use on my theme on my blog, would love to get some feedback on it. </p>
<p><a href="http://pappmaskin.no/2010/03/how-to-make-the-wordpress-plugin-get_the_image-work-with-timthumb/" rel="nofollow">http://pappmaskin.no/2010/03/how-to-make-the-wordpress-plugin-get_the_image-work-with-timthumb/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markgt</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-698</link>
		<dc:creator>Markgt</dc:creator>
		<pubDate>Wed, 17 Mar 2010 20:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-698</guid>
		<description>Hi Joshua
thank you so much - it work straight out of the box - first time :)
thanks for sharing this script</description>
		<content:encoded><![CDATA[<p>Hi Joshua<br />
thank you so much &#8211; it work straight out of the box &#8211; first time :)<br />
thanks for sharing this script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Unseth</title>
		<link>http://www.spidermarket.com/index/retrieve-a-posts-first-image-and-resize-it-with-timthumb/comment-page-1/#comment-687</link>
		<dc:creator>Joshua Unseth</dc:creator>
		<pubDate>Thu, 11 Mar 2010 15:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.spidermarket.com/index/?p=284#comment-687</guid>
		<description>You put the default image into the  in the following code.
&lt;&#063;&#112;&#104;&#112;&#032;&#036;&#099;&#116;&#105;&#032;&#061;&#032;&#099;&#097;&#116;&#099;&#104;&#095;&#116;&#104;&#097;&#116;&#095;&#105;&#109;&#097;&#103;&#101;&#040;&#041;&#059;&#032;&#105;&#102;&#040;&#105;&#115;&#115;&#101;&#116;&#040;&#036;&#099;&#116;&#105;&#041;&#041;&#123;&#032;&#063;&gt;
&lt;&#105;&#109;&#103;&#032;&#115;&#114;&#099;&#061;&quot;&lt;&#063;&#112;&#104;&#112;&#032;&#098;&#108;&#111;&#103;&#105;&#110;&#102;&#111;&#040;&#039;&#116;&#101;&#109;&#112;&#108;&#097;&#116;&#101;&#095;&#117;&#114;&#108;&#039;&#041;&#059;&#032;&#063;&gt;&#047;&#115;&#099;&#114;&#105;&#112;&#116;&#115;&#047;&#116;&#105;&#109;&#116;&#104;&#117;&#109;&#098;&#046;&#112;&#104;&#112;&#063;&#115;&#114;&#099;&#061;&lt;&#063;&#112;&#104;&#112;&#032;&#101;&#099;&#104;&#111;&#032;&#036;&#099;&#116;&#105;&#059;&#032;&#063;&gt;&amp;&#104;&#061;&#054;&#048;&amp;&#119;&#061;&#054;&#048;&amp;&#122;&#099;&#061;&#049;&quot;&#032;&#097;&#108;&#116;&#061;&quot;&#076;&#105;&#110;&#107;&#032;&#116;&#111;&#032;&lt;&#063;&#112;&#104;&#112;&#032;&#116;&#104;&#101;&#095;&#116;&#105;&#116;&#108;&#101;&#040;&#041;&#059;&#032;&#063;&gt;&quot;&#032;&#099;&#108;&#097;&#115;&#115;&#061;&quot;&#116;&#104;&#117;&#109;&#098;&#110;&#097;&#105;&#108;&quot;&#047;&gt;
&lt;&#063;&#112;&#104;&#112;&#032;&#125;&#032;&#101;&#108;&#115;&#101;&#032;&#123;&#125;&#032;&#063;&gt;
It would look something like &lt;&#063;&#112;&#104;&#112;&#032;&#125;&#032;&#101;&#108;&#115;&#101;&#032;&#123;&#063;&gt;&lt;&#105;&#109;&#103;&#032;&#115;&#114;&#099;&#061;&quot;&#115;&#111;&#109;&#101;&#032;&#105;&#109;&#097;&#103;&#101;&#032;&#117;&#114;&#108;&quot;&gt;&lt;&#063;&#112;&#104;&#112;&#032;&#125;&#032;&#063;&gt;</description>
		<content:encoded><![CDATA[<p>You put the default image into the  in the following code.<br />
&#60;&#63;&#112;&#104;&#112;&#32;&#36;&#99;&#116;&#105;&#32;&#61;&#32;&#99;&#97;&#116;&#99;&#104;&#95;&#116;&#104;&#97;&#116;&#95;&#105;&#109;&#97;&#103;&#101;&#40;&#41;&#59;&#32;&#105;&#102;&#40;&#105;&#115;&#115;&#101;&#116;&#40;&#36;&#99;&#116;&#105;&#41;&#41;&#123;&#32;&#63;&#62;<br />
&#60;&#105;&#109;&#103;&#32;&#115;&#114;&#99;&#61;&#34;&#60;&#63;&#112;&#104;&#112;&#32;&#98;&#108;&#111;&#103;&#105;&#110;&#102;&#111;&#40;&#39;&#116;&#101;&#109;&#112;&#108;&#97;&#116;&#101;&#95;&#117;&#114;&#108;&#39;&#41;&#59;&#32;&#63;&#62;&#47;&#115;&#99;&#114;&#105;&#112;&#116;&#115;&#47;&#116;&#105;&#109;&#116;&#104;&#117;&#109;&#98;&#46;&#112;&#104;&#112;&#63;&#115;&#114;&#99;&#61;&#60;&#63;&#112;&#104;&#112;&#32;&#101;&#99;&#104;&#111;&#32;&#36;&#99;&#116;&#105;&#59;&#32;&#63;&#62;&#38;&#104;&#61;&#54;&#48;&#38;&#119;&#61;&#54;&#48;&#38;&#122;&#99;&#61;&#49;&#34;&#32;&#97;&#108;&#116;&#61;&#34;&#76;&#105;&#110;&#107;&#32;&#116;&#111;&#32;&#60;&#63;&#112;&#104;&#112;&#32;&#116;&#104;&#101;&#95;&#116;&#105;&#116;&#108;&#101;&#40;&#41;&#59;&#32;&#63;&#62;&#34;&#32;&#99;&#108;&#97;&#115;&#115;&#61;&#34;&#116;&#104;&#117;&#109;&#98;&#110;&#97;&#105;&#108;&#34;&#47;&#62;<br />
&#60;&#63;&#112;&#104;&#112;&#32;&#125;&#32;&#101;&#108;&#115;&#101;&#32;&#123;&#125;&#32;&#63;&#62;<br />
It would look something like &#60;&#63;&#112;&#104;&#112;&#32;&#125;&#32;&#101;&#108;&#115;&#101;&#32;&#123;&#63;&#62;&#60;&#105;&#109;&#103;&#32;&#115;&#114;&#99;&#61;&#34;&#115;&#111;&#109;&#101;&#32;&#105;&#109;&#97;&#103;&#101;&#32;&#117;&#114;&#108;&#34;&#62;&#60;&#63;&#112;&#104;&#112;&#32;&#125;&#32;&#63;&#62;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

