Is there a way to make the post thumbnail function to stretch the thumbnail to exact dimensions both width and height?
<?php the_post_thumbnail(array(198,120,true)); ?>
<?php the_post_thumbnail(array(‘my-custom-size’); ?>
I have tried these ways but both stops resizing the thumbnail when either one of the measures are fulfilled.
How can I add a css class to a section of thumbnails and use css instead?
- The topic ‘Stretch thumbnail to exact dimensions’ is closed to new replies.