<?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: WP RSS Images &#8211; Wordpress Plugin</title>
	<atom:link href="http://web-argument.com/wp-rss-images-wordpress-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://web-argument.com/wp-rss-images-wordpress-plugin/</link>
	<description>tutorials, tools and tips</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:58:26 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 10-nice</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7465</link>
		<dc:creator>10-nice</dc:creator>
		<pubDate>Wed, 17 Feb 2010 13:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7465</guid>
		<description>Hi,

I notice that your plugin only return the first attached picture for a post, but it should be better if it returns the post&#039;s attached thumbnail if exists.

here is the update of your rss_image_url() function :

function rss_image_url($default_size = &#039;medium&#039;) {
global $post;
	if(has_post_thumbnail()) :
		$img = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ) );
	else:
		$attachments = get_children( array(&#039;post_parent&#039; =&gt; $post-&gt;ID, &#039;post_type&#039; =&gt; &#039;attachment&#039;, &#039;post_mime_type&#039; =&gt; &#039;image&#039;, &#039;order&#039; =&gt; &#039;ASC&#039;, &#039;numberposts&#039; =&gt; 1) );
		if($attachments == true) :
			foreach($attachments as $id =&gt; $attachment) :
				$img = wp_get_attachment_image_src($id, $default_size);
			endforeach;		
		endif;
	endif;
	return $img[0];
}


Best regards, and thanks a lot for your plugin :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I notice that your plugin only return the first attached picture for a post, but it should be better if it returns the post&#8217;s attached thumbnail if exists.</p>
<p>here is the update of your rss_image_url() function :</p>
<p>function rss_image_url($default_size = &#8216;medium&#8217;) {<br />
global $post;<br />
	if(has_post_thumbnail()) :<br />
		$img = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ) );<br />
	else:<br />
		$attachments = get_children( array(&#8217;post_parent&#8217; =&gt; $post-&gt;ID, &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;, &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;, &#8216;order&#8217; =&gt; &#8216;ASC&#8217;, &#8216;numberposts&#8217; =&gt; 1) );<br />
		if($attachments == true) :<br />
			foreach($attachments as $id =&gt; $attachment) :<br />
				$img = wp_get_attachment_image_src($id, $default_size);<br />
			endforeach;<br />
		endif;<br />
	endif;<br />
	return $img[0];<br />
}</p>
<p>Best regards, and thanks a lot for your plugin <img src='http://web-argument.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7458</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7458</guid>
		<description>Does this plugin work with Wordpress 2.7 - 2.9.2 ? Couldn&#039;t get a confirmation on that at http://wordpress.org</description>
		<content:encoded><![CDATA[<p>Does this plugin work with Wordpress 2.7 &#8211; 2.9.2 ? Couldn&#8217;t get a confirmation on that at <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leshell</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7440</link>
		<dc:creator>Leshell</dc:creator>
		<pubDate>Fri, 12 Feb 2010 22:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7440</guid>
		<description>This does not work for me.  Can you help determine what&#039;s wrong?

Thanks.

-Leshell</description>
		<content:encoded><![CDATA[<p>This does not work for me.  Can you help determine what&#8217;s wrong?</p>
<p>Thanks.</p>
<p>-Leshell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roscoe</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7359</link>
		<dc:creator>Roscoe</dc:creator>
		<pubDate>Mon, 01 Feb 2010 04:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7359</guid>
		<description>Hi, great little plugin. Thanks. I too would like to display the image instead of as an attachment. I think Jacob Cass suggestion to have it grab a custom field would be great. Someone else posted that they needed to easily change the image. Having the option to grab the contents of a custom field would also fix someone else&#039;s request to post the last image instead of the first. What do you think?</description>
		<content:encoded><![CDATA[<p>Hi, great little plugin. Thanks. I too would like to display the image instead of as an attachment. I think Jacob Cass suggestion to have it grab a custom field would be great. Someone else posted that they needed to easily change the image. Having the option to grab the contents of a custom field would also fix someone else&#8217;s request to post the last image instead of the first. What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kröll</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7312</link>
		<dc:creator>Michael Kröll</dc:creator>
		<pubDate>Sat, 23 Jan 2010 20:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7312</guid>
		<description>The current version does HTTP requests for every found attachment image to get the filesize which makes the loading of feeds *really* slow if you have some of them. This patch fixes that:

Index: wp-rss-images.php-noextrahttprequestsfix.diff
===================================================================
--- wp-rss-images.php-noextrahttprequestsfix.diff       (revision 0)
+++ wp-rss-images.php-noextrahttprequestsfix.diff       (revision 0)
@@ -0,0 +1,37 @@
+--- wp-rss-images.php.orig     2010-01-23 19:33:28.000000000 +0100
++++ wp-rss-images.php  2010-01-23 21:22:54.000000000 +0100
+@@ -25,13 +25,11 @@
+ else  $image_url = rss_image_url(&#039;medium&#039;);
+
+ if ($image_url != &#039;&#039;) :
+-
+-$filename = $image_url;
+-$ary_header = get_headers($filename, 1);
+-
+-$filesize = $ary_header[&#039;Content-Length&#039;];
+-
+-echo &quot;&quot;;
++        $uploads = wp_upload_dir();
++      $url = parse_url($image_url);
++        $path = $uploads[&#039;basedir&#039;] . preg_replace(&#039;/.*uploads(.*)/&#039;, &#039;${1}&#039;, $url[&#039;path&#039;]);
++      echo &quot;&quot;;
++      echo &quot;&quot;;
+ endif;
+ }
+
+@@ -39,11 +37,10 @@
+
+ function rss_image_url($default_size = &#039;medium&#039;) {
+ global $post;
+-      $attachments = get_children( array(&#039;post_parent&#039; =&gt; $post-&gt;ID, &#039;post_type&#039; =&gt; &#039;attachment&#039;, &#039;post_mime_type&#039; =&gt; &#039;image&#039;, &#039;order&#039; =&gt; &#039;ASC&#039;, &#039;numberposts&#039; =&gt; 1) );
+-      if($attachments == true) :
+-              foreach($attachments as $id =&gt; $attachment) :
+-                      $img = wp_get_attachment_image_src($id, $default_size);
+-              endforeach;
++      $attachments = get_children( array(&#039;post_parent&#039; =&gt; $post-&gt;ID, &#039;post_type&#039; =&gt; &#039;attachment&#039;, &#039;post_mime_type&#039; =&gt; &#039;image&#039;, &#039;order&#039; =&gt; &#039;menu_item&#039;, &#039;numberposts&#039; =&gt; 1) );
++      if($attachments !== false) :
++              $attachement = current($attachments);
++              $img = wp_get_attachment_image_src($attachement-&gt;ID, $default_size);
+       endif;
+       return $img[0];
+ }</description>
		<content:encoded><![CDATA[<p>The current version does HTTP requests for every found attachment image to get the filesize which makes the loading of feeds *really* slow if you have some of them. This patch fixes that:</p>
<p>Index: wp-rss-images.php-noextrahttprequestsfix.diff<br />
===================================================================<br />
&#8212; wp-rss-images.php-noextrahttprequestsfix.diff       (revision 0)<br />
+++ wp-rss-images.php-noextrahttprequestsfix.diff       (revision 0)<br />
@@ -0,0 +1,37 @@<br />
+&#8212; wp-rss-images.php.orig     2010-01-23 19:33:28.000000000 +0100<br />
++++ wp-rss-images.php  2010-01-23 21:22:54.000000000 +0100<br />
+@@ -25,13 +25,11 @@<br />
+ else  $image_url = rss_image_url(&#8217;medium&#8217;);<br />
+<br />
+ if ($image_url != &#8221;) :<br />
+-<br />
+-$filename = $image_url;<br />
+-$ary_header = get_headers($filename, 1);<br />
+-<br />
+-$filesize = $ary_header['Content-Length'];<br />
+-<br />
+-echo &#8220;&#8221;;<br />
++        $uploads = wp_upload_dir();<br />
++      $url = parse_url($image_url);<br />
++        $path = $uploads['basedir'] . preg_replace(&#8217;/.*uploads(.*)/&#8217;, &#8216;${1}&#8217;, $url['path']);<br />
++      echo &#8220;&#8221;;<br />
++      echo &#8220;&#8221;;<br />
+ endif;<br />
+ }<br />
+<br />
+@@ -39,11 +37,10 @@<br />
+<br />
+ function rss_image_url($default_size = &#8216;medium&#8217;) {<br />
+ global $post;<br />
+-      $attachments = get_children( array(&#8217;post_parent&#8217; =&gt; $post-&gt;ID, &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;, &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;, &#8216;order&#8217; =&gt; &#8216;ASC&#8217;, &#8216;numberposts&#8217; =&gt; 1) );<br />
+-      if($attachments == true) :<br />
+-              foreach($attachments as $id =&gt; $attachment) :<br />
+-                      $img = wp_get_attachment_image_src($id, $default_size);<br />
+-              endforeach;<br />
++      $attachments = get_children( array(&#8217;post_parent&#8217; =&gt; $post-&gt;ID, &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;, &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;, &#8216;order&#8217; =&gt; &#8216;menu_item&#8217;, &#8216;numberposts&#8217; =&gt; 1) );<br />
++      if($attachments !== false) :<br />
++              $attachement = current($attachments);<br />
++              $img = wp_get_attachment_image_src($attachement-&gt;ID, $default_size);<br />
+       endif;<br />
+       return $img[0];<br />
+ }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel DiGriz</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7290</link>
		<dc:creator>Daniel DiGriz</dc:creator>
		<pubDate>Fri, 08 Jan 2010 19:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7290</guid>
		<description>Works. But seems to limit the images to 5? When I turn it off, I get none. When I turn it on, I get 5.</description>
		<content:encoded><![CDATA[<p>Works. But seems to limit the images to 5? When I turn it off, I get none. When I turn it on, I get 5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franklin</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7223</link>
		<dc:creator>Franklin</dc:creator>
		<pubDate>Sun, 29 Nov 2009 00:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7223</guid>
		<description>&lt;a href=&quot;#comment-7222&quot; rel=&quot;nofollow&quot;&gt;@Franklin&lt;/a&gt; 
Ah yes the clear cache should always be checked before any comments. Looks great!</description>
		<content:encoded><![CDATA[<p><a href="#comment-7222" rel="nofollow">@Franklin</a><br />
Ah yes the clear cache should always be checked before any comments. Looks great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franklin</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7222</link>
		<dc:creator>Franklin</dc:creator>
		<pubDate>Sat, 28 Nov 2009 23:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7222</guid>
		<description>Hi Alain. Thanks for the puggin. I just put up a new 2.8 blog. No errors but no changes to my rss. Any upgrade work arounds or i just need be patient for the update?
Thanks
Franklin</description>
		<content:encoded><![CDATA[<p>Hi Alain. Thanks for the puggin. I just put up a new 2.8 blog. No errors but no changes to my rss. Any upgrade work arounds or i just need be patient for the update?<br />
Thanks<br />
Franklin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7219</link>
		<dc:creator>Alain</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7219</guid>
		<description>&lt;a href=&quot;#comment-7218&quot; class=&quot;at-regular&quot; rel=&quot;nofollow&quot;&gt;@Aaron&lt;/a&gt; 
get_header is a wordpress function. Uninstall others plugins to see any interaction.</description>
		<content:encoded><![CDATA[<p><a href="#comment-7218" class="at-regular" rel="nofollow">@Aaron</a><br />
get_header is a wordpress function. Uninstall others plugins to see any interaction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://web-argument.com/wp-rss-images-wordpress-plugin/comment-page-1/#comment-7218</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 26 Nov 2009 07:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://web-argument.com/?p=61#comment-7218</guid>
		<description>I am having an issue. When I try to use this plugin, I get the following error when I try to get the RSS feed:

Fatal error:  Call to undefined function:  get_headers() in /wp-content/plugins/wp-rss-images/wp-rss-images.php on line 30

Is there something I&#039;m doing wrong?</description>
		<content:encoded><![CDATA[<p>I am having an issue. When I try to use this plugin, I get the following error when I try to get the RSS feed:</p>
<p>Fatal error:  Call to undefined function:  get_headers() in /wp-content/plugins/wp-rss-images/wp-rss-images.php on line 30</p>
<p>Is there something I&#8217;m doing wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
