I need a current-cat-ancestor class to be applied to list items generated by wp_list_categories. Currently wp_list_categories only generates current-cat and current-cat-parent classes. I need current-cat-ancestor class applied to the next level and beyond. WordPress adds the ancestor class for wp_list_pages and wp_nav_menu, but unfortunately not for wp_list_categories.<div>

<br></div><div>Must work even if categories within the hierarchy contain no posts.<br><div><br></div><div>I&#39;ve done a lot of searching and a bit of coding, but have not found a solution.<br><div><br></div><div><div><div>

Here are some references:</div><div><a href="http://core.trac.wordpress.org/ticket/10676" target="_blank">http://core.trac.wordpress.org/ticket/10676</a></div><div><a href="http://wordpress.org/support/topic/319308" target="_blank">http://wordpress.org/support/topic/319308</a></div>

<div><a href="http://www.devdevote.com/cms/wordpress-hacks/wp_list_categories-with-current_cat_ancestor/" target="_blank">http://www.devdevote.com/cms/wordpress-hacks/wp_list_categories-with-current_cat_ancestor/</a> (This might be a solution, but I can&#39;t get it to work.)</div>

<div><a href="http://www.mummey.org/2009/03/finding-a-category-ancestor-descendant-wp-templates/" target="_blank">http://www.mummey.org/2009/03/finding-a-category-ancestor-descendant-wp-templates/</a></div><div><a href="http://brassblogs.com/wordpress/creating-wordpress-themes-front-page-styling" target="_blank">http://brassblogs.com/wordpress/creating-wordpress-themes-front-page-styling</a></div>

<div><a href="http://www.lumieredelune.com/encrelune/category-ancestor-plugin,2010,01" target="_blank">http://www.lumieredelune.com/encrelune/category-ancestor-plugin,2010,01</a></div><div><br></div><div>Please let me know a rough cost and schedule estimate.</div>

<div><br></div><div>Thank you,<br clear="all">____________________________<br>Mike Devarenne<br>
Swamp-Side Studio, LLC<br>Website Design and Development<br><a href="http://swampsidestudio.com" target="_blank">swampsidestudio.com</a><br>616-443-1476<br>
</div>
</div></div></div></div>