I have 2 sizes thumbs for featured images with the same height:
- 300 x 200
- 540 x 200
I've checked the uploads folder and both thumbs with different sizes appear correctly:
- file_name-300x200.jpg
- file_name-540x200.jpg
I'm trying to get the bigger thumb size (540x200) as following:
$width = 540;
$height = 200;
echo get_the_post_thumbnail( $post->ID, array($width,$height) );
However, the image markup that is returned is for the smaller thumb zise (300x200). Interestingly, the class is displayed with the correct domantions as 'attachment-540x200':
<img width="300" height="200" src="http://mysite.com/wp-content/uploads/file_name-300x200.jpg" class="attachment-540x200 wp-post-image" alt="file_name" title="file_name" />
Would really appreciate if anyone could explain what's happening and why the correct size thumb isn't returned.
Many thanks, Dasha