[wp-hackers] the_post_thumbnail 'full' with no width/height attr
rafaehlers at gmail.com
Tue Feb 15 17:41:43 UTC 2011
<?php $custom = get_post_custom(); $custom =
get_post_meta($custom["_thumbnail_id"], '_wp_attached_file',true); echo
Will echo '2011/02/filename.ext'
On Tue, Feb 15, 2011 at 3:32 PM, Kevin Newman <CaptainN at unfocus.com> wrote:
> 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
More information about the wp-hackers