• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Content Modeling for WordPress
    • WordPress Hidden Gems
    • Web Design
  • Work
    • Presentations and Interviews
    • on GitHub →
    • MLIS Class Projects (2019-2022)
    • Portfolio (2002-2019)
    • WordPress Plugins

Stephanie Leary

Writer, Front End Developer, former WordPress consultant

  • About
    • Press Kit
    • Presentations and Interviews
  • Contact Me

Another WordPress plugin: Assign Missing Categories

November 20, 2008 Stephanie Leary 5 Comments

I’ve written another WordPress plugin as a result of one of my client projects. After I imported old blog posts from Blogger into WordPress, all the Blogger tags had become WordPress categories. That was a huge number of categories, so I used the category-to-tag converter on the whole lot of them… only to realize that quite a few of them were then left with no categories. Since a lot of WordPress code assumes that every post has at least one category, the situation quickly became untenable.

Rather than edit each post by hand, I whipped up some code to assign the default category to all the screwed-up posts. If you’re in the same boat, you can now download it and fix your life with the press of a button. Enjoy.

Blogging, Web Design, WordPress

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Reader Interactions

Comments

  1. Personalized kids books says

    February 6, 2009 at 12:16 am

    Wow, cool. i moved to WP from blogger last month and having the same problem. But this plug-in would do the trick I suppose. I thought its going to be a loong edit by hand. Thanks a lot brother. You saved me a huge lot of trouble. Cheers

    Reply
  2. Married Chatrooms says

    February 9, 2009 at 3:46 am

    Great. i had many problems with my categories. Just didn’t focus on it much while I was maintaining the bog. no idea how I missed it. Anyway thanks for the plug-in. will try it out and let you know how it goes.

    Reply
  3. Nadeesha @ ROCKFUSE Blog Resources says

    February 19, 2009 at 2:07 am

    Nice work with the plug-in. Even though it’s not that popular it will be really useful for many people who are coming to WP from blogger. Good work mate. I’ll try to spread the word around.

    Reply
  4. LGA Limo says

    February 21, 2009 at 9:14 pm

    Another great plug-in I’ve come across today. It must be my lucky day. Neat work with d plug-in. It would easily help to move my other blog to WordPress. Thanks a lot. Cheers

    Reply
  5. NASCAR says

    February 28, 2009 at 2:28 am

    One of my buddies pointed me to your site. It

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

My Books

I’m a front end developer at Equinox OLI, working on open source library software. I was previously a freelance WordPress developer in higher education. You can get in touch here or on LinkedIn.

Copyright © 2025 Stephanie Leary · Contact