[wp-hackers] the_post_thumbnail 'full' with no width/height attr

Kevin Newman CaptainN at unFocus.com
Wed Feb 16 18:45:38 UTC 2011

On 2/15/11 1:51 PM, Otto wrote:
> Here's a bit of a hack workaround that works too... If you do this,
> the width and height get left off entirely. You also get a weird
> attachment class, but which won't break anything.
> the_post_thumbnail(array(0.1,0.1));
> No guarantees on whether it will continue to work in the future.:)
> -Otto
Which would be less likely to break?

$custom = get_post_meta($custom["_thumbnail_id"][0], 



It'd be nice if I could just override (or remove with NULL) width and 
height manually in the attr array..

Kevin N.

More information about the wp-hackers mailing list