Amending wp_list_categories() to return slug name in the <li> class?
-
At present the wp_list_categories() function returns li as follows:
<li class=”cat-item cat-item-11″>
I want to amend the function so that that I can apply catergory specific styles using the slug name instead of ‘cat-item-11’. So something like this:
<li class=”cat-item cat-item-11 slug-name“>
Is it possible to amend the wp_list_categories() to do this?
Any help much appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Amending wp_list_categories() to return slug name in the <li> class?’ is closed to new replies.