How to Highlight current category on category and single page template?
You can do something like <?php $current_category = get_the_category(); /* $current_category[0]->ID is holding the current category now. If there are more than 1 categories for the post you should iterate through all of them and check if the current category you’re displaying is in there */ $cats = get_categories(‘hide_empty=0&child_of=2&orderby=count&number=99&order=asc’); foreach ((array)$cats as $cat) { $catdesc … Read more