[wp-pro] Current Category Ancestor Class

Mike Devarenne mike at swampsidestudio.com
Sat Jul 3 14:16:53 UTC 2010


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.

Must work even if categories within the hierarchy contain no posts.

I've done a lot of searching and a bit of coding, but have not found a
solution.

Here are some references:
http://core.trac.wordpress.org/ticket/10676
http://wordpress.org/support/topic/319308
http://www.devdevote.com/cms/wordpress-hacks/wp_list_categories-with-current_cat_ancestor/(This
might be a solution, but I can't get it to work.)
http://www.mummey.org/2009/03/finding-a-category-ancestor-descendant-wp-templates/
http://brassblogs.com/wordpress/creating-wordpress-themes-front-page-styling
http://www.lumieredelune.com/encrelune/category-ancestor-plugin,2010,01

Please let me know a rough cost and schedule estimate.

Thank you,
____________________________
Mike Devarenne
Swamp-Side Studio, LLC
Website Design and Development
swampsidestudio.com
616-443-1476
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-pro/attachments/20100703/bc95c1e5/attachment.htm>


More information about the wp-pro mailing list