I have a large amount of posts that are not assigned to any category. I am looking for a painless way to assign these post to a category (or at least properly mark them as "Uncategorized").
In WordPress, these posts are labeled as "Uncategorized", but are not linked to that category. Here's a screenshot of the Manage Posts screen with a few properly categorized posts and some that aren't.
This is all probably due to a combination of migrations from previous WordPress installs and conversions of categories to tags.
I could not find any plugins to help me with this. Nor could I find any documentation pages or support forum posts. I'm hoping someone can help me fix this.
Thanks for that Otto42. This is one of the plugins I tried. The problem is, it only allows you to select on assigned categories. Since the posts I'm trying to edit aren't assigned to any category, I can't get them to show up using this plugin. If only it would allow me to do negative selection: "show me all posts not assigned to any category"…
I am thinking of just writing a PHP script to do this for me, but my SQL is rusty, so I'm hoping someone can help me get started with that.
To elaborate: The posts I'm trying to edit aren't even assigned to the "Uncategorized" category. If you look at the screenshot in my first post, you'll see that some have the category "Uncategorized" linked, and some don't. Those that don't actually are not assigned to any category whatsoever. How this came to be, again, I have no clue. :-(
madmblue
Member
Posted 3 weeks ago #
Those that don't actually are not assigned to any category whatsoever. How this came to be, again, I have no clue. :-(
It happened to me when I used the category-to-tag converter on the manage/category tab.
All I'd like to be able to do is re-assign these "uncategorized" posts to a single category. Is this possible?
... I don't understand, it is not possible for a post to not have a category. All posts must have at least one category, which is the default category of "Uncategorized".
Editing the post and simply resaving it should fix it if something went wrong in your database, I expect.
But if something's wrong with the database, then there's probably no generic way to fix it other than that.
madmblue
Member
Posted 3 weeks ago #
Editing the post does resolve it. But the idea of editing umpty-thousand posts one-by-one..... ewwwww.
Exactly Madmblue. I have better things to do. :-(
I am having the same issues. I have a thousand or so posts assigned to 30 or so categories. I've tested the tag converter, but it then makes all those posts uncategorized. I NEED to still have them assigned to "a" category. There's no way to edit the uncategorized category...
Any ideas someone...? :-/