Sorry, I was really unclear in my original post. It’s only menu items in the category list that I’m hiding, so child categories are automatically hidden with their parents. That bit’s fine. My problem is in doing this when either the category or parent category matches a certain value. Something like, the following, but able to detect parent category.
<?php if ($cat == “3”)
{ wp_list_cats(‘exclude=2’);}
else
{ wp_list_cats;}
?>