add_new_sizes creates the image, but the_post_thumbnail doesn't get it (2 posts)

  1. feverinlove
    Posted 4 years ago #

    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 165x115 images are generated.

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

  2. feverinlove
    Posted 4 years ago #

    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 :D :D :D Evil!

Topic Closed

This topic has been closed to new replies.

About this Topic