Use Category Slug as link ID?
-
I’ve tried searching for this but haven’t found quite what I need. Currently wp_list_categories(); will output LIs with class names:
<li class="cat-item cat-item-3">
But I ideally would like to grab the category slug and use it as an ID like this:
<li id="category_slug">
Is this possible?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Use Category Slug as link ID?’ is closed to new replies.