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

Kevin Newman CaptainN at unFocus.com
Tue Feb 15 18:25:40 UTC 2011


On 2/15/11 12:41 PM, Rafael Ehlers wrote:
> <?php $custom = get_post_custom(); $custom =
> get_post_meta($custom["_thumbnail_id"][0], '_wp_attached_file',true); echo
> $custom; ?>
That did it nicely!

<?php
$custom = get_post_custom();
$custom = get_post_meta($custom["_thumbnail_id"][0], 
'_wp_attached_file',true);
?>
<img src="<?php $uploads = wp_upload_dir(); echo $uploads['baseurl'] . 
'/' . $custom ?>" width="100%" />

Thanks,

Kevin N.


More information about the wp-hackers mailing list