How to exclude some categories from the category menu in Wordpress

by Kishore on March 21, 2008

You might be in a situation to exclude some categories which you might have created for some tracking purpose and you do not want to display to the visitors. You can do this by simply modifying the category function

Usually the categories on the menu can be found at the header.php file in your assigned template folder.

 

<?php wp_list_categories('title_li=') ?>
//change this to where 6 and 43 is the category id
<?php wp_list_categories('exclude=6,43&title_li=') ?>      
 

Possibly Interesting Posts

Post on Google Buzz using Voice Search : On Android Phone, you can now post new buzz by just speaking “Post Buzz + Your text to post”. O..[](0)
How to view your or any twitter Conversations : There may be many occasions when you would like to view conversation, especially celebrities or any ..[](0)
How to manage failure - Dr A.J.P Abdul Kalam : http://www.youtube.com/watch?v=laGZaS4sdeU..[](0)
Fill out your e-mail address to receive our free newsletter from Kishore Blog!
E-mail address:
Name:
 

{ 4 comments… read them below or add one }

esvl June 2, 2008 at 8:49 pm

Much needed for a recent theme hack.

Thanks for sharing.

Reply

Babak August 30, 2008 at 3:06 am

Thanks. Solved my problem!

Reply

Justin Nash August 16, 2009 at 9:21 am

Thanks man. This was perfect…

Reply

free wordpress theme August 19, 2009 at 7:31 pm

thanx for share, but can you share how to make script for menu in admin area to setting exclude category menu?

Reply

Leave a Comment

Previous post:

Next post: