The "Uncategorized" category in WordPress is the default category for posts if no other category is assigned. If you'd like to remove or avoid using it, here are several methods you can try:


1. Rename the “Uncategorized” Category

You can't delete the default category, but you can rename it to something more meaningful.

  • Go to Posts > Categories in your WordPress dashboard.
  • Hover over “Uncategorized” and click Edit.
  • Change the name and slug (e.g., to “General” or any other relevant term).
  • Save the changes.

2. Change the Default Category

You can set a new default category so that WordPress doesn't assign "Uncategorized" to your posts.

  • Go to Settings > Writing in your dashboard.
  • In the "Default Post Category" dropdown, select a different category.
  • Save the changes.

3. Delete Posts Assigned to “Uncategorized”

If there are no posts assigned to “Uncategorized,” it won’t appear on your site (though it still exists in the backend).

  • Go to Posts > All Posts.
  • Filter by “Uncategorized” and assign the posts to other categories.
  • Once “Uncategorized” is unused, it won’t be visible on the frontend.

4. Use a Plugin to Hide It

You can use a plugin to hide the "Uncategorized" category from appearing in post lists or menus. Popular category management plugins include:

  • Category Excluder
  • WP Hide Post

5. Remove “Uncategorized” Programmatically

If you’re comfortable with PHP, you can remove “Uncategorized” using custom code in your theme or a custom plugin.

Example Code:

php
function remove_uncategorized_category() { $default_category_id = get_option('default_category'); // Gets the current default category ID wp_delete_category($default_category_id); // Deletes the default category } add_action('init', 'remove_uncategorized_category');

⚠️ Note: Be cautious when editing your theme or adding custom code. Always create a backup before making changes.


6. Hide “Uncategorized” from Menus

If "Uncategorized" is displayed in your menu but you don't want it there:

  • Go to Appearance > Menus.
  • Find and remove "Uncategorized" from your menu.
  • Save the menu.

7. Bulk Edit Posts

For existing posts under “Uncategorized”:

  • Go to Posts > All Posts.
  • Select all posts in the "Uncategorized" category.
  • Use the Bulk Edit option to assign them to another category.
Je li Vam ovaj odgovor pomogao? 0 Korisnici koji smatraju članak korisnim (0 Glasovi)