Support » Fixing WordPress » How to remove Uncategorized from posts in bulk?

  • I’m trying to switch to specific categories instead of the generic “Uncategorized” and I can’t figure out how to edit the posts unless I do it manually on each and every post. I can assign a category in bulk, but when I do, it changes each post to the new category and the default Uncategorized.

    I thought about just assigning new categories and then deleting the Uncategorized category, but it doesn’t seem to be allowed. Any advice how I can bulk edit posts so that they don’t have the Uncategorized category?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could just rename the uncategorized category, but I’m pretty sure all posts will still be in that category.

    Can’t you just untick the uncategorised box when you are assigning categories with bulk edits or is that the problem?

    @cjc1867, You can, but the posts still show as being in the uncategorized category.

    You may have already figured out a solution, but what you could do is:

    Assign the categories you want to the posts which are in the Uncategorized category using the Bulk Actions feature. If you have a lot of posts, you can increase the number shown on each page by adding something like this to your theme’s functions.php file:

    function my_edit_posts_per_page($posts_per_page) {
       return 200; // Change this to the number of posts per page you want.
    }
    add_filter('edit_posts_per_page', 'my_edit_posts_per_page');

    Next, change the Default Post Category in Settings >> Writing to something other than Uncategorized.

    Now you should be able to delete the Uncategorized category.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove Uncategorized from posts in bulk?’ is closed to new replies.