I use the inove theme for my wordpress blog and I want to have a dropdown menu item for categories in my navigation menu bar.
To do this I've used this article:
http://wphacks.com/how-to-make-categories-drop-down-menu/
The css code from the article I haven't used, because the inove theme already had :hover for navigation coded. From the html/php code, I've used this part:
'
<li class="cat-item">Categories
<ul class="children">
<?php wp_list_categories('orderby=name&title_li=');
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "") {
echo "
- ";
wp_list_categories('orderby=id&show_count=0&title_li=
&use_desc_for_title=1&child_of='.$this_category->cat_ID);
echo "
}
?>
'
That code I've put in the header.php file and in Firefox I have a working dropdown menu. I'm not sure if it's correctly showing the category hierarchy, of if it is only listing all top level categories. In IE the categories menu isn't droppping down at all.
Could anyone help me to create a dropdown menu for all categories with the correct hierachy so that subcategories dropdown in a seperate dropdown menu, for the inove theme, and that it works for both FF and IE?
Thanks,
Jim