{"id":1267,"date":"2025-02-11T12:10:07","date_gmt":"2025-02-11T12:10:07","guid":{"rendered":"https:\/\/cachitoswp.com\/?p=1267"},"modified":"2025-02-11T19:08:58","modified_gmt":"2025-02-11T19:08:58","slug":"bulk-actions-remove-categories-or-taxonomy-terms","status":"publish","type":"post","link":"https:\/\/cachitoswp.com\/en\/bulk-actions-remove-categories-or-taxonomy-terms\/","title":{"rendered":"Bulk Actions: Remove Categories or Taxonomy Terms"},"content":{"rendered":"<p class=\"has-primary-color has-text-color has-link-color has-large-font-size wp-elements-91e92d427b28aa62e75cd5c2dd9aa1b5 wp-block-paragraph\">This is one of those situations in which I have found myself more than once in need of, when editing posts or products in bulk, that is, with the batch editor, not only changing the category assignment massively, but also removing a category en masse: And this, you cannot do with the native WordPress batch editor.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:60%\">\n<p class=\"wp-block-paragraph\">In some cases I had ended up doing it manually like a donkey, or with another type of tool that was too powerful and complex for the basic need I had. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">I have sometimes tried even checking and unchecking the category again, but it is useless, this bulk edit form that WordPress brings by default is only additive, not subtractive.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">This also happens a lot in WordPress, for a specific functionality need it can get complicated... it is not difficult to fall into the trap of &quot;overengineering&quot; and move away from the <a href=\"https:\/\/www.quelinka.com\/blog\/post\/principio-kiss-ejemplos\">KISS paradigm<\/a> (Keep it simple, stupid).<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"679\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2025\/02\/Screenshot_20250211_131406.png\" alt=\"\" class=\"wp-image-1272\" srcset=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2025\/02\/Screenshot_20250211_131406.png 708w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2025\/02\/Screenshot_20250211_131406-417x400.png 417w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2025\/02\/Screenshot_20250211_131406-13x12.png 13w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">I found a very good plugin that, just by activating it, under the metaboxes of the bulk editor for taxonomy and category terms, adds a new checkbox that activates the delete functionality. It&#039;s that easy, that simple.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Bo1JTCDPEi\"><a href=\"https:\/\/wordpress.org\/plugins\/bulk-remove-posts-from-category\/\">Bulk remove posts from category<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cBulk remove posts from category\u201d \u2014 Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/bulk-remove-posts-from-category\/embed\/#?secret=8wVwjBAE12#?secret=Bo1JTCDPEi\" data-secret=\"Bo1JTCDPEi\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Keep this in mind for the next time you need to delete post categories or products in bulk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UPDATE: Well, since I&#039;m an idiot, I haven&#039;t been able to do this, but since WordPress 6.7 this feature is no longer necessary, as the plugin authors clarify:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-masterns wp-block-embed-masterns\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"WVOyb38221\"><a href=\"https:\/\/masterns-studio.com\/blog\/wordpress\/wordpress-6-7-bulk-remove-posts-from-category\/\">WordPress 6.7 \u2013 bulk remove posts from category<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cWordPress 6.7 \u2013 bulk remove posts from category\u201d \u2014 MasterNs\" src=\"https:\/\/masterns-studio.com\/blog\/wordpress\/wordpress-6-7-bulk-remove-posts-from-category\/embed\/#?secret=4Dc4LW7Qmd#?secret=WVOyb38221\" data-secret=\"WVOyb38221\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u00c9sta es una de \u00e9sas situaciones en las que me he visto m\u00e1s de una vez en la necesidad de, a la hora de editar entradas o productos en bulk, es decir con el editor de lotes, no s\u00f3lo cambiar la asignaci\u00f3n de categor\u00edas masivamente, tambi\u00e9n quitar a saco una categor\u00eda: Y esto, no lo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-1267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-diseno-desarrollo-web-wordpress","category-plugins"],"mb":[],"mfb_rest_fields":["title"],"_links":{"self":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/comments?post=1267"}],"version-history":[{"count":4,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1267\/revisions"}],"predecessor-version":[{"id":1276,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1267\/revisions\/1276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media\/1269"}],"wp:attachment":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media?parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/categories?post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/tags?post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}