I have a category called "Featured" that I use as a second category for some posts I write. This is used only for my own organization. For example, I will write a post and file it under "Category 1" and "Featured". In the different areas of my blog that list all the categories, I would like to not display the "Featured" category, as this is only for my own personal organization. The line of code Im looking at is: <?php wp_list_categories('sort_column=name&title_li='); ?> Code (markup): Does anyone know how to exclude a certain category from being listed, the same way you can exclude page numbers? Thanks!!!!
You might want to look here http://codex.wordpress.org/Template_Tags/wp_list_categories#Include_or_Exclude_Categories
Thanks for the links. I was able to hide the categories within Wordpress, but the problem Im facing is actually within the breadcrumb navigation plugin. When you view the post, the breadcrumb navigation plugin shows something like this: Home > Category A, Category B > Article Name Im trying to hide, for example, Category B from displaying, and the plugin is not written using Wordpress codex.
@gouthamlal - Why don't you post your solution since this thread attracted at least 3 people with similar issues
just by adding <?php wp_list_categories('exclude=4,7&title_li='); ?> Code (markup): Here 4, 7 are the category id's, which you can find by dropping you mouse on category name in admin section.
Just add this to the end of your style.css file. Change the cat-item number as applicable. .cat-item-1 {display:none;}
Well you can even customised your theme go to theme editor and single.php/page.php and remove the "breadcrumb code"