I have been attempting to use add_image_size for my custom thumbnail resize, but it seems to be having trouble maintaining the thumbnail size at 220 x 220. Instead, it keeps changing the height to 167 pixels. As a workaround, I am exploring a CSS-based solution, which should work seamlessly.
This is my current thumbnail code:
<?php if ( ! post_password_required() && ! is_attachment() ) :
the_post_thumbnail();
endif; ?>
Below is the CSS class that I am seeking assistance in applying to the thumbnail code above:
.imgclass{
height: 220px;
width: 220px;
}
Big thanks to all the amazing coders out there!