For my header navigation bar, I want to list ONE specific category, with a javascript/css drop-down menu of all the subcategories for that particular category.
I've encountered a few problems though. When I use the following code, I only get the category, no subcategories.
<?php $myNavCat = get_cat_ID($myNavCatName); ?>
<ul>
<?php wp_list_categories( 'title_li=&depth=0&include='.$myNavCat); ?>
</ul>
If I replace 'include' with 'child_of', I get all the subcategories, but not the parent category.
Also, I've noticed that when you add a new post and select a subcategory, the parent is NOT selected by default. For instance, if I have a category called 'Animals', with a subcategory of 'Zebras', I want to select 'Zebras' and have it automatically placed within the Animals category.
Any help with either of these issues is much appreciated!