php - the_post_thumbnail() without proportion -
is possible tell wordpress show the_post_thumbnail() without proportion rate.
i need width , height want
the_post_thumbnail(array(350,350));
if image larger height, put height 350px , ignore width i've set 350 too.
how hack ?
just use timthumb method explained here: http://www.binarymoon.co.uk/demo/timthumb-basic/
works great , let need after copying timthumb.php proper wp theme directory. pass source image , h x w of exact size of final cropped image, so:
timthumb.php?src=castle1.jpg&h=350&w=350
instructions , examples provided following above link.
good luck!!
marcelous
Comments
Post a Comment