Highlighting the 'All' category in wp_list_categories
-
I have given the following arguments in the wp_list_categories function.
<?php wp_list_categories('show_option_all=All&hide_empty=0&title_li=¤t_category=All'); ?>
I want the ‘All’ option to be visible in any category listing. However, since by default, all posts load, the styling for current_category should also apply to ‘All’. However, since All does not have a category ID, I do not know how to apply the current-cat class to ‘All’.
Any suggestions?
- The topic ‘Highlighting the 'All' category in wp_list_categories’ is closed to new replies.