Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 3 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
add comment

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 –  S.Varun Jan 28 '13 at 6:10
add comment

Your Answer

 
discard

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.