Support » Plugin: Regenerate Thumbnails » Update thumbnails metadata for not-regenerated thumbnails

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alex Mills

    (@viper007bond)

    The 150×150 is left in the metadata on purpose because it still exists on your server.

    the_post_thumbnail( 'thumbnail' ) should properly load the 300×300 size, but you can also do the_post_thumbnail( array( 300, 300 ) ) and WordPress will pick the closest size it can.

    But really though it’s probably best if you create custom sizes in your theme instead of relying on the values set in wp-admin.

    See these two links:

    https://developer.wordpress.org/reference/functions/set_post_thumbnail_size/
    https://developer.wordpress.org/reference/functions/add_image_size/

    • This reply was modified 2 years, 3 months ago by Alex Mills.

    The option to delete old thumbnails would be cool. Thank you for the plugin though.

    Plugin Contributor Alex Mills

    (@viper007bond)

    It was a feature in the original v3.x release but I removed it as the accompanying code that updates posts to remove references to those old, deleted sizes was buggy. I’m working on rewriting it.

    I actually just ran into this issue myself. I had started my site with the default 150×150 size, but changed it to something larger later on. I am using the ACF gallery and am trying to display the thumbnail and, despite me running the regeneration, it’s still defaulting to the 150×150 one. I think the reason for this is that in the attachment meta data, it’s still referencing the old thumbnail size. AND, the full image size is the same as the thumbnail size (I have a large-ish thumbnail size for a specific reason.)

    Agree it would be cool to have this in a future release. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Update thumbnails metadata for not-regenerated thumbnails’ is closed to new replies.