jump to navigation

How to Hide Unwanted Category in WordPress November 12, 2009

Posted by admin in : Website , trackback

If you are using magazine style template with category menu located above (navbar) sometimes you want to hide one of the categories above. For example the front page is there a special section about the product category but you do not want to display the menu in the navigation above. For those who like to code, maybe can try this.

In the template you open the file header.php and look for the code more or less like this:

<?php wp_list_categories('sort_column=name&title_li=&depth=2'); ?>

Fox code above becomes:

<?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude=10'); ?>

Number 10 is category ID you want to hide. For example there are more than 1 category you want to hide, its code becomes like this:

<?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude=10,5,4'); ?>

Easy enough right?

But don’t worry, for you are less likely to modify the API codes wordpress, I have a good plugin to hide the category. Its name Advanced Category Excluder or abbreviated so ACE.

Advanced Category Excluder

Advanced Category Excluder 2

After installed, you can see also Advanced Category Excluder already in the Widget Menu at wordpress admin.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Comments»

no comments yet - be the first?



Recent Search:
  wordpress hide category from menu (10)  wordpress hide category in menu (3)  wordpress hide category menu (3)  wordpress hide category (3)  wordpress hide uncategorized (3)  wordpress hide categories from menu (2)  how to hide category wordpress top menu (2)  wordpress hide categories in menu (2)  hide a category from menu wordpress (2)  hide category menu wordpress (2)