How to exclude some categories from the category menu in Wordpress

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=') ?>      
 
Bookmark and Share

This post was written by:

Kishore Asokan.
About Kishore - I have been working on different online projects for some time now. Making money online is my biggest challenge and to some extend I have succeeded. Visit Kishore Asokan's website to find out more.. Read other articles writtern by Asokan Kishore

Kishore On Digg | Kishore On Twitter | Kishore On Facebook | Kishore On Stumbleupon

Wordpress Plugin For PAP

Related Posts

  • Hiding Unwanted Pages in Menu – Wordpress
  • In you Wordpress blog, you may want to...
  • Footnotes – New Feature in Google Docs
  • Google Docs has added a new feature...
  • Blog Posting Using Microsoft Word
  • Recently I was trying to do blog posts...
  • How to use windows live writer effectively
  • Every software has its own pros and cons...
  • Twellow – Twitter Search Engine
  • Twellow is a new Twitter search engine...

    2 Responses to “How to exclude some categories from the category menu in Wordpress”

    1. esvl says:

      Much needed for a recent theme hack.

      Thanks for sharing.

    2. Babak says:

      Thanks. Solved my problem!

    Trackbacks/Pingbacks


    Leave a Reply

    Free Home Jobs

    Affiliate Panel Login | New Members Sign-up

    Login to this Blog


    My Flickr Photos - See all photos