Ok, now onto the next trick. I want to highlight the current category link in the navbar when viewing a post within that category, not just when the category “archive” page is being viewed.
Here’s the current code I am using to pull category links in the navbar:
<?php wp_list_categories(‘sort_column=name&title_li=’); ?>
- The topic ‘Highlight Current Category in Navbar on Single Page’ is closed to new replies.