WordPress.org

Forums

auto create specific image sizes only when click on "use featured image"? (4 posts)

  1. B_Dark
    Member
    Posted 2 years ago #

    What code I have to put in function.php so the sizes of the photo will not be created automatically but only when "use featured image"?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    The smaller images that WP creates on an image upload have nothing to do with the featured image - unless your current theme is creating custom versions via add_image().

  3. B_Dark
    Member
    Posted 2 years ago #

    My theme creates custom version via add image. So, how I am going to make these custom versions to be created when I click on the "use as featured image"?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    You can't. The extra images are added when the source image is uploaded.

Topic Closed

This topic has been closed to new replies.

About this Topic