[wp-hackers] Always finding more and more cleverness in WP...

Ozh ozh at planetozh.com
Tue Aug 19 19:03:31 GMT 2008


On Tue, Aug 19, 2008 at 8:57 PM, Otto <otto at ottodestruct.com> wrote:
> In short:
> <?php echo wp_get_attachment_image( $post->ID, array(600,600) ); ?>
> Gives me an IMG tag that has a max size of 600 on one side, using the
> next biggest scaled image it has as per the parameters on the
> Settings->Miscellaneous screen.
>
> I just found that highly clever and thought everybody should know about it. :)
>

Thanks for this tip Otto. Indeed cool stuff !

Ozh
-- 
http://planetOzh.com ~ Blog and WordPress Stuff


More information about the wp-hackers mailing list