wordpress - the_post_thumbnail( array(x,y) ); -
i trying use wp function the_post_thumbnail( array(x,y) ); images are failing resize properly. it's not working correctly.
specifically in page-template.php file i'm building trying use:
the_post_thumbnail( array(200,200) );
yet resulting image 200 x 150. missing here?
i tried explicitly add thumbnail size functions.php so:
add_image_size( 'news-feature-thumb', 200, 200, true );
but made no difference.
i looked on stackoverflow, i've seen nothing answers problem. using wp 3.3.1. method deprecated?
after added add_image_size( 'news-feature-thumb', 200, 200, true );
try calling the_post_thumbnail
that:
the_post_thumbnail( 'news-feature-thumb' );
Comments
Post a Comment