Support » Fixing WordPress » add_new_sizes creates the image, but the_post_thumbnail doesn’t get it

  • I added a new thumbnail size using add_image_size( ‘index-thumb’, 165, 115, true );

    When I check the uploads folder I can see the new 165×115 images are generated.

    but when I use the_post_thumbnail(‘index-thumb’); the original image is called and then resized to 165×115 not the smaller image.

Viewing 1 replies (of 1 total)
  • I found a solution,

    instead of making new image size

    I added:

    add_image_size( ‘medium’, 165, 115, true );

    and hard-cropped the medium size 😀 😀 😀 Evil!

Viewing 1 replies (of 1 total)
  • The topic ‘add_new_sizes creates the image, but the_post_thumbnail doesn’t get it’ is closed to new replies.