Take the 2-minute tour ×

Here is my code:

$imgdata = wp_get_attachment_image_src( get_post_thumbnail_id($id, 'thumbnail' );
$imgurl = $imgdata[0]; 
$imgwidth = $imgdata[1]; 
$imgheight = $imgdata[2];
if( !empty($imgurl) ){
    echo '<img src="'.$imgurl.'" width="10" height="1" alt="" />';  

The image size is always 365x228.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Regenerate Thumbnails plugin is by far the easiest solution for managing anything related to thumbnail dimensions.

Regenerate Thumbnails

share|improve this answer
add comment

Your Answer


