<?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: How to: Use Thumbnails Generated by WordPress</title>
	<atom:link href="http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Sun, 12 Feb 2012 06:35:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: TECHFLAPS - Waves of Technology &#124; 10 Extremely Useful Wordpress Hacks</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-22223</link>
		<dc:creator>TECHFLAPS - Waves of Technology &#124; 10 Extremely Useful Wordpress Hacks</dc:creator>
		<pubDate>Tue, 20 Jul 2010 15:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-22223</guid>
		<description>[...] Use Thumbnails Generated by WordPress Display images on your blog’s homepage without any custom fields or any additional functions.php script, something I first saw on WebDeveloperPlus. [...]</description>
		<content:encoded><![CDATA[<p>[...] Use Thumbnails Generated by WordPress Display images on your blog’s homepage without any custom fields or any additional functions.php script, something I first saw on WebDeveloperPlus. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-9723</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 11 Sep 2009 05:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-9723</guid>
		<description>Damn that looks useful!

It hadn&#039;t even occurred to me to do that before, but it makes total sense.

Thanks for the awesome tip :)


I could see this begin very useful when implemented alongside the new thumbnail system which will probably be coming in Wp 2.9. If no thumbnail is set by the user, then it could be set up to default back to grabbing one off the page like this, and if none is found on the page, then it could default back to something else.</description>
		<content:encoded><![CDATA[<p>Damn that looks useful!</p>
<p>It hadn&#8217;t even occurred to me to do that before, but it makes total sense.</p>
<p>Thanks for the awesome tip <img src='http://wphacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I could see this begin very useful when implemented alongside the new thumbnail system which will probably be coming in Wp 2.9. If no thumbnail is set by the user, then it could be set up to default back to grabbing one off the page like this, and if none is found on the page, then it could default back to something else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elaine-</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-9635</link>
		<dc:creator>Elaine-</dc:creator>
		<pubDate>Mon, 07 Sep 2009 09:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-9635</guid>
		<description>Hi, I was wondering what the numberposts was for, when i only get 10 thumbnails because i have ten posts per page on my blog, i put this code in my blog hoping to be able to change the number of thumbnails on my archives page, but it doesn&#039;t!!  any suggestions? thanks man!!</description>
		<content:encoded><![CDATA[<p>Hi, I was wondering what the numberposts was for, when i only get 10 thumbnails because i have ten posts per page on my blog, i put this code in my blog hoping to be able to change the number of thumbnails on my archives page, but it doesn&#8217;t!!  any suggestions? thanks man!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: take</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8744</link>
		<dc:creator>take</dc:creator>
		<pubDate>Mon, 10 Aug 2009 15:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8744</guid>
		<description>sorry, I see my code doesn&#039;t come through properly, I posted it here http://snipt.org/llgp</description>
		<content:encoded><![CDATA[<p>sorry, I see my code doesn&#8217;t come through properly, I posted it here <a href="http://snipt.org/llgp" rel="nofollow">http://snipt.org/llgp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: take</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8743</link>
		<dc:creator>take</dc:creator>
		<pubDate>Mon, 10 Aug 2009 15:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8743</guid>
		<description>I&#039;m using a similar function to pull the images automatically to feed my gallery using: 
function postimage($size=&#039;medium&#039;,$num=-1,$lighbox=1) {
	if ( $images = get_children(array(
		&#039;post_parent&#039; =&gt; get_the_ID(),
		&#039;post_type&#039; =&gt; &#039;attachment&#039;,
		&#039;numberposts&#039; =&gt; $num,
		&#039;order&#039; =&gt; &#039;ASC&#039;,
		&#039;orderby&#039; =&gt; &#039;ID&#039;,
		&#039;post_mime_type&#039; =&gt; &#039;image&#039;,)))
	{
		foreach( $images as $image ) {
			$attachmenturl=wp_get_attachment_url($image-&gt;ID);
			$attachmentimage=wp_get_attachment_image($image-&gt;ID, $size );
			$img_title = $image-&gt;post_title;
			$img_desc = $image-&gt;post_excerpt;
			if ($size != &quot;full&quot;){
				echo &#039;&lt;a href=&quot;&#039;.$attachmenturl.&#039;&quot; title=&quot;&#039;.$img_desc.&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.$attachmentimage.&#039;&lt;/a&gt;&#039;;
			} else {
				echo &#039;&#039;;
			}
		}
	} else {
		echo &quot;No Image&quot;;
	}
}


This is working fine but I&#039;d rather use the medium size wordpress image instead of the full size as this could improve speed. Could anyone give me a hint how to go about? Basically $attachmenturl should print the URL to the medium size attachment..</description>
		<content:encoded><![CDATA[<p>I&#8217;m using a similar function to pull the images automatically to feed my gallery using:<br />
function postimage($size=&#8217;medium&#8217;,$num=-1,$lighbox=1) {<br />
	if ( $images = get_children(array(<br />
		&#8216;post_parent&#8217; =&gt; get_the_ID(),<br />
		&#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;,<br />
		&#8216;numberposts&#8217; =&gt; $num,<br />
		&#8216;order&#8217; =&gt; &#8216;ASC&#8217;,<br />
		&#8216;orderby&#8217; =&gt; &#8216;ID&#8217;,<br />
		&#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;,)))<br />
	{<br />
		foreach( $images as $image ) {<br />
			$attachmenturl=wp_get_attachment_url($image-&gt;ID);<br />
			$attachmentimage=wp_get_attachment_image($image-&gt;ID, $size );<br />
			$img_title = $image-&gt;post_title;<br />
			$img_desc = $image-&gt;post_excerpt;<br />
			if ($size != &#8220;full&#8221;){<br />
				echo &#8216;<a href="'.$attachmenturl.'" title="'.$img_desc.'" rel="nofollow">&#8216;.$attachmentimage.&#8217;</a>&#8216;;<br />
			} else {<br />
				echo &#8221;;<br />
			}<br />
		}<br />
	} else {<br />
		echo &#8220;No Image&#8221;;<br />
	}<br />
}</p>
<p>This is working fine but I&#8217;d rather use the medium size wordpress image instead of the full size as this could improve speed. Could anyone give me a hint how to go about? Basically $attachmenturl should print the URL to the medium size attachment..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to: Use Thumbnails Generated by WordPress &#124; CSS Luxury</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8679</link>
		<dc:creator>How to: Use Thumbnails Generated by WordPress &#124; CSS Luxury</dc:creator>
		<pubDate>Thu, 06 Aug 2009 07:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8679</guid>
		<description>[...] Check out original source [...]</description>
		<content:encoded><![CDATA[<p>[...] Check out original source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lio</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8602</link>
		<dc:creator>Lio</dc:creator>
		<pubDate>Mon, 03 Aug 2009 09:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8602</guid>
		<description>yes, that&#039;s exactly what I meant; something like the default gravatar; a default image situated on the server replaces the thumbnail when it&#039;s not available.
I&#039;m sure some code masters could help on that...</description>
		<content:encoded><![CDATA[<p>yes, that&#8217;s exactly what I meant; something like the default gravatar; a default image situated on the server replaces the thumbnail when it&#8217;s not available.<br />
I&#8217;m sure some code masters could help on that&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer Rosenbaum</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8565</link>
		<dc:creator>Omer Rosenbaum</dc:creator>
		<pubDate>Thu, 30 Jul 2009 16:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8565</guid>
		<description>Lio, you mean like a default image?
I don&#039;t know how to do it, but the easiest way will be to use the favicon image (jpg format) as a default. But then it is required that you upload an image to a specific location and put a reference in the code to that location.</description>
		<content:encoded><![CDATA[<p>Lio, you mean like a default image?<br />
I don&#8217;t know how to do it, but the easiest way will be to use the favicon image (jpg format) as a default. But then it is required that you upload an image to a specific location and put a reference in the code to that location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lio</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8564</link>
		<dc:creator>Lio</dc:creator>
		<pubDate>Thu, 30 Jul 2009 15:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8564</guid>
		<description>BTW, thanks for this nice hack, it&#039;s working fine on my site; thing is, when there&#039;s no image in the post... it needs improvements then :)</description>
		<content:encoded><![CDATA[<p>BTW, thanks for this nice hack, it&#8217;s working fine on my site; thing is, when there&#8217;s no image in the post&#8230; it needs improvements then <img src='http://wphacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lio</title>
		<link>http://wphacks.com/how-to-use-thumbnails-generated-by-wordpress/#comment-8563</link>
		<dc:creator>Lio</dc:creator>
		<pubDate>Thu, 30 Jul 2009 14:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=2183#comment-8563</guid>
		<description>Would be nice to have a code that put a &quot;replacement&quot; thumbnail, if no thumbnail is found in attachments...
How can I do that?</description>
		<content:encoded><![CDATA[<p>Would be nice to have a code that put a &#8220;replacement&#8221; thumbnail, if no thumbnail is found in attachments&#8230;<br />
How can I do that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

