Categories Listing and Highlighting current category item

On the Codex page for wp_list_categories(), you can see the two following arguments that might help you:

  • hide_empty: Toggles the display of categories with no posts. The default is true (hide empty categories).
  • current_category: Allows you to force the current-cat CSS class to appear on uses of wp_list_categories() that are not on category archive pages.

Note that current_category only accepts one category ID. If you have a post that belongs to two categories, you will have to choose one.