WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed wordpress Muilit Site (NETWORK)

I need to Remove / Rename Uncategorized Category In Wordpress.

How is this possible?

share|improve this question
What did you try? – Mark Kaplun Jan 28 '13 at 5:57
up vote 6 down vote accepted

To change the default "Uncategorized" using code you can do the following:

// Uncategorized ID is always 1
wp_update_term(1, 'category', array(
  'name' => 'hello',
  'slug' => 'hello', 
  'description' => 'hi'

Read this: http://codex.wordpress.org/Function_Reference/wp_update_term

share|improve this answer

In wp-admin, you can rename the Uncategorized category any time. Just go to Posts > Categories and do it. :)

In case you forgot to assign a post to any category WordPress will add that post to Uncategorized by default. That's why a default category is must.

To change a default category go to Settings > Writing.

Then choose the Default category whatever you want; but you have to add a new category from the Categories page first. Enjoy WordPress.

share|improve this answer
i need to do it via php code because user will create the site when they need so i need to do it vai php code – Varun Sridharan Jan 28 '13 at 6:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.