{"id":29366,"date":"2021-03-01T14:19:24","date_gmt":"2021-03-01T13:19:24","guid":{"rendered":"http:\/\/alessandrobuzzi.com\/?p=29366"},"modified":"2021-03-01T14:19:24","modified_gmt":"2021-03-01T13:19:24","slug":"how-to-bulk-remove-featured-images-in-wordpress","status":"publish","type":"post","link":"https:\/\/alessandrobuzzi.com\/?p=29366","title":{"rendered":"How to Bulk Remove Featured Images in WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In WordPress, you can only remove post featured image one by one by editing each post and clicking on the \u201cRemove Featured Image\u201d link, which &nbsp;is easier to do if you have only few posts but if you have hundreds of posts then removing them one by one can be a daunting task. &nbsp;But fear not, there is a simpler and easier way to bulk remove &nbsp;featured image in WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the following code and paste it in your theme\u2019s functions.php file.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">global $wpdb;\n$wpdb->query( \"\nDELETE FROM $wpdb->postmeta \nWHERE meta_key = '_thumbnail_id'\n\" );<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note: This code will only remove the featured image from the posts, It will not delete the images from your Media Library or from your uploads folder.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the code and open your site\u2019s Dashboard &nbsp;and it will immediately remove all the featured image. &nbsp;After that, please go back to your theme\u2019s functions.php and remove the code from the file or else it will keep removing the featured images afterwards.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">source: <a href=\"https:\/\/wpmunk.com\/how-to-bulk-remove-featured-images-in-wordpress\/\">https:\/\/wpmunk.com\/how-to-bulk-remove-featured-images-in-wordpress\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WordPress, you can only remove post featured image one by one by editing each post and clicking on the \u201cRemove Featured Image\u201d link, which &nbsp;is easier to do if you have only few posts but if you have hundreds of posts then removing them one by one can be a daunting task. &nbsp;But fear [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-29366","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=\/wp\/v2\/posts\/29366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29366"}],"version-history":[{"count":0,"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=\/wp\/v2\/posts\/29366\/revisions"}],"wp:attachment":[{"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alessandrobuzzi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}