By default the wp_list_pages function generates a great list of pages. One of the best things about this is that it gives each
<li> appropriate classes, especially the current-page, current-page-parent and current-page-ancestor classes. As most of you probably know, this is great when it comes to styling my pages list (in other words, my menu).
So, now I want to do the same thing with the category lists. Now it gives med the classes current-cat and current-cat-parent. But there is not a current-cat-ancestor class.
As I've been searching around on the forums, ideas and documentation I found out that a function for finding out if a category is ancestor for the current category. I'm not too good at php-code (good enough to copy, paste and modify), so please help me. For now I'll be using an easy workaround (not displaying categories beyond level 2, at all).