I apologize for the brevity:<div><br></div><div>1) Currently, the $size passed to the_post_thumbnail() must be a *registered* image size. Passing an array currently does not work.</div><div><br></div><div>2) I would suggest if ( has_post_thumbnail() ) as the conditional for determining if the current post has a post thumbnail.</div>
<div><br></div><div>Chip<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 2:44 PM, Kirk Wight <span dir="ltr">&lt;<a href="mailto:kwight@kwight.ca">kwight@kwight.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My first thought would be simply to check if get_the_post_thumbnail returns empty; if not, use the returned image, if so, pull the first image from the post. This would avoid mucking with the_post_thumbnail altogether. (I haven&#39;t tested any of this, just a hunch from taking a look at get_the_post_thumbnail).<div>


<br></div><div>The best place to ask would be the theme support forums: <a href="http://wordpress.org/support/forum/themes-and-templates" target="_blank">http://wordpress.org/support/forum/themes-and-templates</a></div><div>
<br></div><div>

Good luck!</div><div><br></div><div><br><br><div class="gmail_quote"><div><div class="h5">On 1 February 2012 14:26, ethan anwar <span dir="ltr">&lt;<a href="mailto:ethananwar@yahoo.com" target="_blank">ethananwar@yahoo.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">

<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hello everybody!<br>Hope I&#39;m not bothering and I hope this isn&#39;t the wrong place but I know you guys are into WordPress and have a lot of experience.<br>


<br>For my Mantra theme I created a short function that automatically gets the first image from a post with the thought of using that as a thumbnail featured image in case one is not selected.<br>So once I have that custom image&#39;s src attribute i thought of doing this :<br>


<br>the_post_thumbnail( array($width,$height), array(&quot;class&quot; =&gt; &quot;post_thumbnail&quot;  , &quot;src&quot; =&gt; $my_custom_src ));   or even just the_post_thumbnail(  array(&quot;src&quot; =&gt; $my_custom_src ));<br>


<br>So I want the the_post_thumbnail function to use and show my custom image. But nothing happens. I can even type the address of an image on the site that exists and is verified. And still nothing
 happens, not even a warning or an error. If I remove the src part out of the array eveything functions normally. But I do see the src as an attribute in the the_post_thumbnail&#39;s function description.<br>The weird thing is that it worked previously to 3.3.1. Or so I thought.<br>


<br>Thanks a lot !<br><br></div></div><br></div></div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>