Have you ever been in a situation where you deleted an image in the WordPress editor, but the image itself still indicates that it is linked to a page or post? Keep reading if you want to learn how to properly remove images from WordPress pages and posts!
You’re updating a website or blog through WordPress, because a picture is no longer wanted on a page or post. You head in to Edit and remove the picture, but the image remains linked to your page or post. This could lead to confusion for your site visitors if your site is set up in a way where each image/attachment gets its own page.
For example: in my Going Paperless blog post, I initially used a stock image to demonstrate the ideal paperless office. After publishing the post, I was able to grab a picture of Sean‘s workspace -which was a better fit for the post – so I replaced the picture.
Done and dusted, right? Nope! The previous image was still linked to the page.
How to properly remove images from WordPress pages or posts:
First, head to the suspicious page/post and click on Add Media, just above the WYSIWYG editor.
In the Insert Media window that pops up next, head to the Media Library tab.
Once you’re in the Media Library, you can choose to filter by different criteria. Choose Uploaded to this post.
At this point, the culprit(s) should be clear. In the Attachment Details, found upon clicking an image, you can choose to Delete Permanently if you wish.
Thanks for reading my blog post on how to properly remove images from WordPress pages or posts.
Have you encountered this before? Did I miss anything? Let me know in the comments below!
Oh, and follow me on Twitter if you fancy.