我正在使用koresponsive主题。我在标题下方的菜单栏中显示类别名称。现在,我需要从菜单栏中删除“未分类”类别。我该怎么做?代码是什么。请帮帮我。
这是我的header.php
. 我想我得换衣服了wp_list_categories
. 我尝试了很多方法。但它不起作用。
<!DOCTYPE html>
<?php $options = get_option(\'koresponsive\'); ?>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<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>
<![endif]-->
<?php kore_head(); ?>
<?php wp_head(); ?>
<?php if (is_front_page()) { ?>
<script>
jQuery(document).ready(function($){
$(\'#slides\').slides({
preload: true,
preloadImage: \'<?php echo get_template_directory_uri(); ?>/images/loading.gif\',
play: 5000,
pause: 2500,
hoverPause: true,
generatePagination: false
});
});
</script>
<?php } ?>
</head>
<?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=\'); ?>
</ul>
<?php } ?>
</nav>
</div>
</div><!--container-->
</header>
<div class="main-c">