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 am using koresponsive theme. I am displaying name of categories as my menu bar just below my header. Now I need to remove 'Uncategorized' category from displaying it in the menu bar. How can I do it? What is the code.Please help me.

Here is my header.php. I guess I have to change in wp_list_categories. I tried many ways. But it is not working.

    <!DOCTYPE html>
    <?php $options = get_option('koresponsive'); ?>
   <html class="no-js" <?php language_attributes(); ?>>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title(''); ?></title>
<?php kore_meta(); ?>
 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_enqueue_script("jquery"); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<?php kore_head(); ?>
<?php wp_head(); ?>
    <?php if (is_front_page()) { ?>
        preload: true,
        preloadImage: '<?php echo get_template_directory_uri(); ?>/images/loading.gif',
        play: 5000,
        pause: 2500,
        hoverPause: true,
        generatePagination: false

  <?php } ?>      
 <?php flush(); ?>
  <body id ="blog" <?php body_class('main'); ?>>
<header class="main-header">
    <div class="container">

        <div id="header">

            <?php if( is_front_page() || is_home() || is_404() ) { ?>
                    <h1 id="logo">
                        <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
                    </h1>  <!-- FINE #logo -->
            <?php } else { ?>
                    <h2 id="logo">
                        <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a> 
                    </h2>  <!-- FINE #logo -->
            <?php } ?> 
             <?php if ( !function_exists('dynamic_sidebar')
     || !dynamic_sidebar('Top Widget') ) : ?>
        <?php endif; ?>         
        </div><!--FINE #header-->
        <div class="second-nav">
                <nav id="navigation" >
                    <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
                        <?php wp_nav_menu(   array( 'theme_location' => 'primary-menu', 'menu_class' => 'menu', 'container' => '' ) ); ?>
                    <?php } else { ?>

                        <ul class="menu">
                            <?php wp_list_categories('title_li='); ?>

                    <?php } ?>
   <div class="main-c">
share|improve this question
up vote 0 down vote accepted

You have to add the argument to exclude the 'Uncategorised' category using this:

<?php wp_list_categories('title_li=&exclude=XX'); ?>

where XX is the ID of the category to exclude.

Here is the codex page http://codex.wordpress.org/Template_Tags/wp_list_categories#Include_or_Exclude_Categories

share|improve this answer
thank you lucio.I tried it it.BUt it didn't worked.I am not able to get category id. – user2934937 Nov 15 '13 at 10:10
the id of the 'Uncategorised' category is 1. wp_list_categories('exclude=1&title_li='); – Lucio Coire Galibone Nov 15 '13 at 10:15
thank you so much lucio. – user2934937 Nov 15 '13 at 10:16
thank you so much lucio.It works fine. – user2934937 Nov 15 '13 at 10:18

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.