• [ Moderator note: moved to How-to and Troubleshooting. ]

    I have a post1 that uses image1 as featured image.
    I also have post2 and post3 that also uses image1 as featured image.

    Now, I deleted post1 permanently (not even in trash). What I noticed right away is that post2 and post3 no longer have a featured image. When I checked media, image1 is no longer there.

    I think image1 was deleted along with post1 deletion.

    Is this some kind of a bug? Or it’s really how WP works.
    Do I have to re-upload the same image again and again if I use them again and again on different posts as a featured image?

Viewing 1 replies (of 1 total)
  • Thread Starter kenweill

    (@kenweill)

    I made an experiment.

    I created post4 with no featured image.
    I created post5 with image2 as featured image. Uploaded the image from post5 creation.
    I created post6 with image2 as featured image.

    Then, I edit post4 to use image2 as featured image.

    I deleted post4 permanently. Both post5 and post6 still have image2 as featured image.
    Now, I deleted post5 permanently. Post6 no longer have a featured image as image2 was deleted with post5.

    So here’s my conclusion. When I upload an image and use it as featured image from within a post (post5), that image2 is associated with post5. When post5 is deleted, so is image2.

    Temporary solution:
    Upload image3 from Media > Add new.
    When image3 is uploaded, it’s not associated with any posts.

    Now, I created post7 and use image3 as feature image.
    I created post8 and use image 3 as featured image.

    Then I delete post7 permanently. Post8 still have the featured image.
    I deleted post8 permanently. Image3 is still found on Media Library, and still can be used on future posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Image deleted with a post even when that same image is used on other posts’ is closed to new replies.