I am trying to create a square thumbnail with auto crop with size of 300px 300px. I only get the width of 300px but the height is auto, i think is not cropping.
I tried this:
add_image_size( 'custom_image_size', 300, 300, true );
the_post_thumbnail('custom_image_size');
and this
set_post_thumbnail_size( 300, 300, true );
the_post_thumbnail();
but i get the width 300px and the height is auto. I also tried to Regenerate Thumbnails by using a wordpress plugin. So what should i do to get the thumbnail 300px with 300px ?
Images have dimensions: 1600 × 1200... so the images are bigger then 300px in width and height.