WordPress.org

Ready to get started?Download WordPress

Forums

Deleting categories and subcategories (4 posts)

  1. Andrei
    Member
    Posted 3 years ago #

    Hello all,

    I have a strange issue which goes as follows:

    I am trying to get rid of some of my categories and subcategories in an effort to cleanup a blog (but keeping the posts).

    I know that when by default wordpress moves my deleted post to the Misc/uncategorized category (the default category we get at installation time).

    However, I renamed that category in order to have it for daily use.

    Now, when I delete categories, wordpress tells me that by default it will assign posts in the deleted category to that Misc/uncategorized category (that one I renamed)

    Here comes the issue: actually WordPress doesn't assign them to any category at all! I'm guessing it must be because I renamed it, although it sounds silly to assign posts to a category by name instead of by id or something (so that the reference is kept).

    Anyone had this problem before? Is there a workaround? Also, is there a way to bulk reassign posts? (this would be much more helpful).

  2. MichaelH
    Member
    Posted 3 years ago #

    When you delete a catgory the posts get assigned to the 'Default Post Category' defined via Administration > Settings > Writing.

    As for the bulk category question--there is this
    http://robm.me.uk/projects/plugins/wordpress/batch-categories
    http://uwmike.com/wordpress/wp-cats/
    http://wordpress.org/extend/plugins/bulk-move/

    You can also use the standard Bulk Edit with this caveat:
    "Categories and Tags can be ADDED in bulk to a set of Posts, but it is not possible to CHANGE, or DELETE, a Category, or Tag, for those Posts."

  3. Andrei
    Member
    Posted 3 years ago #

    Thanks Michael, the posts do solve my issue and actually that's what I needed in the first place.

    For the default post category however, indeed that's what WordPress says it will do, but even though my default category is called "Various" and when I delete a category WordPress warns me that the posts will be moved to "Various", they appear as belonging to the non-existent category "Uncategorized" and they no longer appear on the website.

  4. MichaelH
    Member
    Posted 3 years ago #

    I'd consider creating a new category, then changing the default post category to that new category.

Topic Closed

This topic has been closed to new replies.

About this Topic