<?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: Automatic Post Thumbnails Without Plugins</title>
	<atom:link href="http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/</link>
	<description>Various Epiphanies of a Technical Mind</description>
	<lastBuildDate>Sun, 29 Jan 2012 23:20:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: marvin</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-74824</link>
		<dc:creator>marvin</dc:creator>
		<pubDate>Sun, 29 Aug 2010 09:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-74824</guid>
		<description>thanks! ,, I got it work for YARPP.. YARPP with thumbnails.. see it working in my blog with some CSS tweaks.

Adding image through wordpress built-in featured image is a lot of work. nahhh . i want it automatic.. 

thanks again..</description>
		<content:encoded><![CDATA[<p>thanks! ,, I got it work for YARPP.. YARPP with thumbnails.. see it working in my blog with some CSS tweaks.</p>
<p>Adding image through wordpress built-in featured image is a lot of work. nahhh . i want it automatic.. </p>
<p>thanks again..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shahid</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-74565</link>
		<dc:creator>shahid</dc:creator>
		<pubDate>Mon, 28 Jun 2010 14:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-74565</guid>
		<description>hay sir

sir can u tell me how to add  &quot;Auto Post Thumbnail&quot; in wordpress

sir just look like this web site &quot;http://www.theme-junkie.com&quot;

Plz Sir Tell Me About This mothed

my web site is www.Gloori.Com

this is my free wp theme

sir this is my free wp theme link

http://fthemes.com/demonstration/?wptheme=TodaysNews

and this is download link

http://fthemes.com/download/?theme=todays-news

me not understand how to install &quot;Auto Post Thumbnail&quot; in my wp theme

plz sir tell me about this im waiting for ur reply
byee</description>
		<content:encoded><![CDATA[<p>hay sir</p>
<p>sir can u tell me how to add  &#8220;Auto Post Thumbnail&#8221; in wordpress</p>
<p>sir just look like this web site &#8220;http://www.theme-junkie.com&#8221;</p>
<p>Plz Sir Tell Me About This mothed</p>
<p>my web site is <a href="http://www.Gloori.Com">http://www.Gloori.Com</a></p>
<p>this is my free wp theme</p>
<p>sir this is my free wp theme link</p>
<p><a href="http://fthemes.com/demonstration/?wptheme=TodaysNews">http://fthemes.com/demonstration/?wptheme=TodaysNews</a></p>
<p>and this is download link</p>
<p><a href="http://fthemes.com/download/?theme=todays-news">http://fthemes.com/download/?theme=todays-news</a></p>
<p>me not understand how to install &#8220;Auto Post Thumbnail&#8221; in my wp theme</p>
<p>plz sir tell me about this im waiting for ur reply<br />
byee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marvin</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-73504</link>
		<dc:creator>marvin</dc:creator>
		<pubDate>Mon, 04 Jan 2010 12:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-73504</guid>
		<description>thanks !  I made it work. maybe you can teach me how to add formatting to it... Like align left or align right. text wrapped...</description>
		<content:encoded><![CDATA[<p>thanks !  I made it work. maybe you can teach me how to add formatting to it&#8230; Like align left or align right. text wrapped&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Ho</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72955</link>
		<dc:creator>Sam Ho</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72955</guid>
		<description>good knowledge... wondering how could I implement this hint into mind..</description>
		<content:encoded><![CDATA[<p>good knowledge&#8230; wondering how could I implement this hint into mind..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oes tsetnoc</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72750</link>
		<dc:creator>oes tsetnoc</dc:creator>
		<pubDate>Thu, 01 Oct 2009 07:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72750</guid>
		<description>Hi, Just like to tell you that this piece of info is one quick to the point, no nonsense, workable and effective way as fast as possible. It worked for me and thank you for the effort. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Hi, Just like to tell you that this piece of info is one quick to the point, no nonsense, workable and effective way as fast as possible. It worked for me and thank you for the effort. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Necati</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72608</link>
		<dc:creator>Necati</dc:creator>
		<pubDate>Mon, 31 Aug 2009 15:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72608</guid>
		<description>I am getting the same thumbnail for each post.
Have been trying to isolate the problem for a few hours, I think it is because the code requests the first thumbnail out of the whole set of thumbnails in the query.

I came to this conclusion when I selected the order to be DESC.
With the original code, the first image from my earliest post shows for all, with DESC the last image of my last post.</description>
		<content:encoded><![CDATA[<p>I am getting the same thumbnail for each post.<br />
Have been trying to isolate the problem for a few hours, I think it is because the code requests the first thumbnail out of the whole set of thumbnails in the query.</p>
<p>I came to this conclusion when I selected the order to be DESC.<br />
With the original code, the first image from my earliest post shows for all, with DESC the last image of my last post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Necati</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72607</link>
		<dc:creator>Necati</dc:creator>
		<pubDate>Mon, 31 Aug 2009 11:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72607</guid>
		<description>I usually adopt a theme and customize the hell out of it, but that one needs to take care of custom fields in each and every post takes away from the joy of writing something new. It is all the more boring if you need to edit others&#039; posts so that listing pages look good.

This was exactly what I was looking for. 

Thanks!</description>
		<content:encoded><![CDATA[<p>I usually adopt a theme and customize the hell out of it, but that one needs to take care of custom fields in each and every post takes away from the joy of writing something new. It is all the more boring if you need to edit others&#8217; posts so that listing pages look good.</p>
<p>This was exactly what I was looking for. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72566</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Sat, 29 Aug 2009 16:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72566</guid>
		<description>@Kevin

Good question! I suppose the answer would depend on if your preference is ripping out the existing functionality and replacing it with the one in this post, or using the existing method of the custom field while providing a check to see if it has a value.

I can only guess what the code would look like in your theme, as there are different ways to accomplish the code from the custom field.

Let&#039;s pretend your custom field name in the post page is &#039;thumbnail&#039; then you could have any of these types of solutions in your theme currently.

You might have one that absolutely requires a value in that field. No forgetting allowed.
&lt;code&gt;&lt;img src=&quot;&lt;?php get_post_meta($post-&gt;ID, &quot;thumbnail&quot;, true); ?&gt;&quot; /&gt;&lt;/code&gt;

Or you could have something that checks to see if you have a value in the thumbnail custom field before it tries to use it. That might work like this:
&lt;code&gt;
&lt;?php&lt;br /&gt;
$thethumb = get_post_custom_values(&quot;thumbnail&quot;);&lt;br /&gt;
if (isset($thethumb[0])) {  ?&gt;&lt;br /&gt;
&lt;!-- start showing the thumbnail --&gt;&lt;br /&gt;
&lt;img src=&quot;&lt;?php echo $thethumb[0]; ?&gt;&quot; /&gt;&lt;br /&gt;
&lt;!-- done showing the thumbnail --&gt;&lt;br /&gt;
&lt;?php }  ?&gt;
&lt;/code&gt;

But what you would really need is something like this:
&lt;code&gt;
&lt;?php&lt;br /&gt;
$thethumb = get_post_custom_values(&quot;thumbnail&quot;);&lt;br /&gt;
if (isset($thethumb[0])) {  ?&gt;&lt;br /&gt;
&lt;!-- start showing the thumbnail --&gt;&lt;br /&gt;
&lt;img src=&quot;&lt;?php echo $thethumb[0]; ?&gt;&quot; /&gt;&lt;br /&gt;
&lt;!-- done showing the thumbnail --&gt;&lt;br /&gt;
&lt;?php  } else {  ?&gt;&lt;br /&gt;
&lt;!-- no thumbnail - start showing the default --&gt;&lt;br /&gt;
&lt;img src=&quot;http://somesite.com/default.jpg&quot; /&gt;&lt;br /&gt;
&lt;!-- done showing the default --&gt;&lt;br /&gt;
&lt;?php } ?&gt;
&lt;/code&gt;

On the other hand, you could find the piece of the code that calls the thumbnail, remove that code and replace it with the thumbnail solution on this post.

If you want to keep the custom field method, and if that code bit I just posted doesn&#039;t look like what you have in your theme... then I&#039;d need to see what you do have in your theme and how you want to handle the images.

~Nicole</description>
		<content:encoded><![CDATA[<p>@Kevin</p>
<p>Good question! I suppose the answer would depend on if your preference is ripping out the existing functionality and replacing it with the one in this post, or using the existing method of the custom field while providing a check to see if it has a value.</p>
<p>I can only guess what the code would look like in your theme, as there are different ways to accomplish the code from the custom field.</p>
<p>Let&#8217;s pretend your custom field name in the post page is &#8216;thumbnail&#8217; then you could have any of these types of solutions in your theme currently.</p>
<p>You might have one that absolutely requires a value in that field. No forgetting allowed.<br />
<code>&lt;img src=&quot;&lt;?php get_post_meta($post-&gt;ID, &quot;thumbnail&quot;, true); ?&gt;&quot; /&gt;</code></p>
<p>Or you could have something that checks to see if you have a value in the thumbnail custom field before it tries to use it. That might work like this:<br />
<code><br />
&lt;?php<br />
$thethumb = get_post_custom_values(&quot;thumbnail&quot;);<br />
if (isset($thethumb[0])) {  ?&gt;<br />
&lt;!-- start showing the thumbnail --&gt;<br />
&lt;img src=&quot;&lt;?php echo $thethumb[0]; ?&gt;&quot; /&gt;<br />
&lt;!-- done showing the thumbnail --&gt;<br />
&lt;?php }  ?&gt;<br />
</code></p>
<p>But what you would really need is something like this:<br />
<code><br />
&lt;?php<br />
$thethumb = get_post_custom_values(&quot;thumbnail&quot;);<br />
if (isset($thethumb[0])) {  ?&gt;<br />
&lt;!-- start showing the thumbnail --&gt;<br />
&lt;img src=&quot;&lt;?php echo $thethumb[0]; ?&gt;&quot; /&gt;<br />
&lt;!-- done showing the thumbnail --&gt;<br />
&lt;?php  } else {  ?&gt;<br />
&lt;!-- no thumbnail - start showing the default --&gt;<br />
&lt;img src=&quot;http://somesite.com/default.jpg&quot; /&gt;<br />
&lt;!-- done showing the default --&gt;<br />
&lt;?php } ?&gt;<br />
</code></p>
<p>On the other hand, you could find the piece of the code that calls the thumbnail, remove that code and replace it with the thumbnail solution on this post.</p>
<p>If you want to keep the custom field method, and if that code bit I just posted doesn&#8217;t look like what you have in your theme&#8230; then I&#8217;d need to see what you do have in your theme and how you want to handle the images.</p>
<p>~Nicole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72564</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Sat, 29 Aug 2009 15:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72564</guid>
		<description>@Astacia -- Glad you found it useful!</description>
		<content:encoded><![CDATA[<p>@Astacia &#8212; Glad you found it useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Preblud</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/comment-page-1/#comment-72554</link>
		<dc:creator>Kevin Preblud</dc:creator>
		<pubDate>Sat, 29 Aug 2009 12:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648#comment-72554</guid>
		<description>Nicole,

This is an excellent solution, however I have question. We are in the midst of installing a new theme. In order to accomplish a similar outcome, it requires the author of the post to copy the url location of the post photo and paste that address into a custom field called &quot;thumb.&quot;  I fear the same issue with our many contributors, that they will most likely forget to complete the process and copy the url of their post photo to this custom field. 

Any thoughts on how to accomplish the same thing (automatic &quot;thumb&quot; thumbnail) and a fallback if no photo.

Thanks much,

Kevin Preblud
Publisher and Founder</description>
		<content:encoded><![CDATA[<p>Nicole,</p>
<p>This is an excellent solution, however I have question. We are in the midst of installing a new theme. In order to accomplish a similar outcome, it requires the author of the post to copy the url location of the post photo and paste that address into a custom field called &#8220;thumb.&#8221;  I fear the same issue with our many contributors, that they will most likely forget to complete the process and copy the url of their post photo to this custom field. </p>
<p>Any thoughts on how to accomplish the same thing (automatic &#8220;thumb&#8221; thumbnail) and a fallback if no photo.</p>
<p>Thanks much,</p>
<p>Kevin Preblud<br />
Publisher and Founder</p>
]]></content:encoded>
	</item>
</channel>
</rss>

