WordPress.org

Ready to get started?Download WordPress

Forums

How to remove Uncategorized from posts in bulk? (5 posts)

  1. RickRottman
    Member
    Posted 2 years ago #

    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?

  2. deepbevel
    Member
    Posted 2 years ago #

    You could just rename the uncategorized category, but I'm pretty sure all posts will still be in that category.

  3. cjc1867
    Member
    Posted 2 years ago #

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

  4. RickRottman
    Member
    Posted 2 years ago #

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

  5. Tom
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic