How do I keep my blog page highlighted in the nav when viewing full posts???
-
Hi,
How do I keep my blog page highlighted in the nav when viewing full posts???
I have a static home page for my site and a separate ‘blog’ page displaying excerpts of the first 5 posts using WP_Query.My navigation uses the typical <?php wp_list_pages(‘sort_column=menu_order’); ?>
And this highlights the ‘current_page_item’ as an active page. Which looks nice once styled with CSS.Only problem is when I click on one of the posts on the blog page to read the full article the blog page is no longer highlighted in my nav. I know the way WordPress is setup it takes you to single.php but I need the users to still see the blog navigation item as highlighted. I have seen this done on hundreds of other sites but can’t find anything in the codex that addresses this issue.
- The topic ‘How do I keep my blog page highlighted in the nav when viewing full posts???’ is closed to new replies.