In this post I will discuss how to bulk delete featured images from posts. One can manually remove featured images but it is time consuming and might not be practical for websites with large number of posts. So in this post I will share a few code snippets which will make the task of removing featured images a breeze. More specifically we will cover following in this tutorial.
- Removing Featured Images from All Posts / Pages
- Removing Featured Images from all posts belonging to a Category.
- Removing Featured Images from a particular Post Type.
- Removing Featured Images from All Posts published before / after certain date
Take note that we will not delete the featured images, we will simply unset / unlink them. In other words the featured images you remove will still be accessible via the media library.