In a site I have using WordPress 3.0, when I’m in a single post, the navbar showing the categories doesn’t give the parent category the class of “current_cat” and therefore that category is not highlighted.
How can I make WordPress give the parent category that class in single_post mode?
I found the answer here.
Add to functions.php the following function and hook: