Tame Those Unruly Sidebar Categories

Take a look at your blog (or website) categories. What do you see? A handful of easy to understand and navigate categories or a tangled mess?

I’ve had this blog for a long time. 4 years to be exact and it has grown up with the blogging ‘industry’. Back then, I created a few categories and over the years this just grew and grew. So now, I am forced to ‘tame’ them. But the problem is, with so many posts, I didn’t want to wait until I have time to re-organize each post. So how do I quickly keep unwanted categories from displaying, so I can deal with them on my own time?

If you’re running WordPress, you’re so in luck because they made is super easy.

Step 1 

Log in as administrator, go to you Manage >> Categories to pull up a list of all your categories. Hover your mouse over the categories you want to remove. In your browser status bar (the area at the bottom left of your browser). Look for cat_ID=XX

Get WordPress Category ID

Write down the number. Do this for each category you want to remove.

Step 2 

In your theme sidebar.php file, look for a line that looks like this code:

Change it to this. It tells WordPress to hide the specified category IDs

If you have more than one category, simply type in the category ID numbers you collected in Step 1, separate them with a comma like this

If you have more categories you want to hide than you want to keep, you can also do this in reverse by telling WordPress to only display the following category IDs like this:

Do You Want A Hands-Free Business?

Then get this guide to help you systemize your business so you'll have more time working on your business.

!
!

Hey! I want to make sure you know what you're getting here. In addition to the guide, you will also receive our memo that includes special offers, announcements and of course actionable information.

Terms and Conditions checkbox is required.
Something went wrong. Please check your entries and try again.
Facebook Comments

12 Comments

  1. Carrie Lauth on June 25, 2008 at 8:31 pm

    You.Read.My.Mind.

    Was just searching for this info!



  2. Carrie Lauth on June 25, 2008 at 4:31 pm

    You.Read.My.Mind.

    Was just searching for this info!



  3. Stefanie on June 25, 2008 at 9:23 pm

    Very cool – I hadn’t really thought of doing this, but I help my mom with her blog and she could DEFINITELY use some pruning.



  4. Stefanie on June 25, 2008 at 5:23 pm

    Very cool – I hadn’t really thought of doing this, but I help my mom with her blog and she could DEFINITELY use some pruning.



  5. Lynette on June 26, 2008 at 1:12 am

    @Carrie: Totally. But don’t worry, I won’t tell others what else is on your mind 😉

    @Stefanie: Uhuh. I have been dragging my feet on this as well. But my category pains go a little deeper as I need to re-think some of them that’s why I display tags now which I think is becoming another tangled mess.



  6. Lynette on June 25, 2008 at 9:12 pm

    @Carrie: Totally. But don’t worry, I won’t tell others what else is on your mind 😉

    @Stefanie: Uhuh. I have been dragging my feet on this as well. But my category pains go a little deeper as I need to re-think some of them that’s why I display tags now which I think is becoming another tangled mess.



  7. Kim on August 12, 2008 at 6:14 pm

    Great tip, Lynette! I’m going to try this.

    But when I eventually do find time to reorganize/delete some of my categories, will it affect anything with Google… page rank, etc?



  8. Kim on August 12, 2008 at 2:14 pm

    Great tip, Lynette! I’m going to try this.

    But when I eventually do find time to reorganize/delete some of my categories, will it affect anything with Google… page rank, etc?



  9. Lynette on August 12, 2008 at 8:14 pm

    Hey Kim, while SEO is out of my scope of expertise, I do know that if you change the category names, and you used SE friendly permalinks, changing categories could break some of your site links – e.g. Category pages. Anytime you change your URLs it is likely to affect your standing. To what extent, I don’t know. The only good way about that is to redirect.

    Re-arranging them should not be a problem I would think but again it all depends on how you set up the permalinks. If you have the category in the URLs that could be a problem.



  10. Lynette on August 12, 2008 at 4:14 pm

    Hey Kim, while SEO is out of my scope of expertise, I do know that if you change the category names, and you used SE friendly permalinks, changing categories could break some of your site links – e.g. Category pages. Anytime you change your URLs it is likely to affect your standing. To what extent, I don’t know. The only good way about that is to redirect.

    Re-arranging them should not be a problem I would think but again it all depends on how you set up the permalinks. If you have the category in the URLs that could be a problem.



  11. Kim on August 12, 2008 at 9:10 pm

    Thanks, Lynette. No, I don’t have the categories in the permalinks. So the links wouldn’t be affected.



  12. Kim on August 12, 2008 at 5:10 pm

    Thanks, Lynette. No, I don’t have the categories in the permalinks. So the links wouldn’t be affected.