I am using your plugin and it works quite well, but I am trying to figure out how I could hack in some identification tags for parents. I see that children are identified with class=’children’ for the
tag. I would love to be able to identify parents as well with something like <li class=”parent”> or similar. I’ve tried adding some checks to the code that creates the category <li’s> to do
if (in_array($category->cat_ID, $all_ancestors)) {
//try add class="parent"
}
But I can’t seem to get it to work. Any ideas for how to ID parents and add a class tag?