Stephanie Leary

Writer and WordPress consultant

  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Fascism Watch (2016-17)
    • Content Modeling for WordPress series
    • WordPress Hidden Gems series
  • Work
    • Portfolio
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →
  • About
    • Press Kit
  • Contact
    • Mailing List

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

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 to LGA Limo Cancel reply

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

Latest WordPress Book

Content Strategy for WordPress

A short book for content strategists and managers on implementing a complete content strategy in WordPress: evaluation, analysis, content modeling, editing and workflows, and long-term planning and maintenance.

Read the sample chapter

Kindle Nook iBooks Kobo Smashwords

WordPress for Web Developers

WordPress for Web Developers (9781430258667)

This is a book for professional web designers and developers who already know HTML and CSS, and want to learn to build sites with WordPress. The book begins with a detailed tour of the administration screens and settings, then digs into server-side topics like performance and security. The second half of the book is devoted to development: learning to build WordPress themes and plugins.

This is the second, much-revised and updated edition of Beginning WordPress 3, with a more accurate title. Everything’s been updated for WordPress 3.6.

WordPress for Web Developers is out now. See what's inside...

The best WordPress features you’ve never noticed

  • WordPress Hidden Gems: Screen Options
  • WordPress Hidden Gems: Bulk Edit
  • WordPress Hidden Gems: Private Status
  • WordPress Hidden Gems: Dashboard Feed Readers
  • WordPress Hidden Gems: Options.php

Content Modeling for WordPress series

  • Content modeling for WordPress, part 1: analyze content
  • Content modeling for WordPress, part 2: functional and organizational requirements
  • Content modeling for WordPress, part 3: a sample content model

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.

Copyright © 2022 Stephanie Leary