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

Rafael Ehlers rafaehlers at gmail.com
Tue Feb 15 17:41:43 UTC 2011


<?php $custom = get_post_custom(); $custom =
get_post_meta($custom["_thumbnail_id"][0], '_wp_attached_file',true); echo
$custom; ?>

Will echo '2011/02/filename.ext'

On Tue, Feb 15, 2011 at 3:32 PM, Kevin Newman <CaptainN at unfocus.com> wrote:

> Hello,
>
> I'm trying to use 'the_post_thumbnail' to output the full size image (the
> original size not resized by wordpress), but without outputting the width
> and height (I'd like them width="100%" height="" actually, but empty would
> be good enough).
>
> Is there anyway to do that with this function, or will I have to build my
> image tag manually?
>
> Kevin N.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list