I wanted to introduce 3 different version of post thumbnails – each with different cropping (top, center, left) , so i added them like this:

add_image_size( 'newscentered', 400, 400, array( 'center', 'center') );
add_image_size( 'newstop', 400, 400, array( 'center', 'top' ) );
add_image_size( 'newsbottom', 400, 400, array( 'center', 'bottom' ) );

Now, whenever i use the the_post_thumbnail() with the name of my custom image size i always get the same image – cropped to the default wordpress crop position of (‘center’, ‘center’) .

Why is that happening? I did ‘refresh’ the thumbnails and tried also uploading fresh image files and still i can’t get 3 differently cropped versions of the image.

I noticed that when i set the cropping defaults using the following function:

set_post_thumbnail_size( 400, 400, array('center', 'bottom'));

then it affects the cropping but for all my thumbnails, so i can only get one “crop position” for all my images.

Guys, is this some kind of bug or do i configure something in a wrong way?


Read more here: WordPress add_image_size cropping position bug, feature?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: