If i want to show only 6 categories or limit them, in header menu bar (header cat) how i can do? My blog is listed under my recent blog, see in sky blue bar.
You could do it a few ways. You could do it by including categories, suppose you only want to show category numbers 1,3,5 <?php wp_list_categories('orderby=name&include=1,3,5'); ?> Code (markup): Suppose you want to define categories you DONT want shown, category id 2,4,6 for example: <?php wp_list_categories('orderby=name&exclude=2,4,6'); ?> Code (markup): Or if you just want to show the first 6 categories: <?php wp_list_categories('orderby=name&number=6'); ?> Code (markup): I hope this helps
I change this line in menu widgets but not work. my menu widgets file code is <div id="menu"> <ul> <li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('home'); ?>/" title="Home">Home</a></li> <?php wp_list_categories('orderby=ID&order=ASC&depth=2&hide_empty=0&title_li='); ?> </ul> <form class="searchform" method="get" action="<?php bloginfo('url'); ?>/"> <fieldset> <input type="text" value="<?php the_search_query(); ?>" name="s" class="searchfield" /> <input type="submit" value="" class="searchbutton" /> </fieldset> </form> </div> PHP:
Just add it like this and it should work. <div id="menu"> <ul> <li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('home'); ?>/" title="Home">Home</a></li> <?php wp_list_categories('orderby=ID&order=ASC&depth=2&hide_empty=0&title_li=&number=6'); ?> </ul> <form class="searchform" method="get" action="<?php bloginfo('url'); ?>/"> <fieldset> <input type="text" value="<?php the_search_query(); ?>" name="s" class="searchfield" /> <input type="submit" value="" class="searchbutton" /> </fieldset> </form> </div> PHP: