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:
Is this possible?
- The topic ‘Use Category Slug as link ID?’ is closed to new replies.