We know that
the_post_thumbnail() outputs the thumbnail & that
the_post_thumbnail( array(100,100) ) outputs the thumbnail at a specified size.
And we know that we can use
add_image_size( 'category-thumb', 300, 9999, $crop ); to add a custom image size which we can call using
the_post_thumbnail('category-thumb') with scaling and cropping applied.
Is there a way to use
the_post_thumbnail to crop an image when it's displayed?
set_post_thumbnail_size could help, but I'm asking specifically if there is a way to do this with
This is relevant: the_post_thumbnail scaling not hard cropping
( if nothing's changed the answer is no )