Problem with “current_page_item” navigation highlighting
-
I am using 2.1 and have successfully done dynamic navigation on several sites using “page_item” and “current_page_item” invoked by wp_list_pages(). I am having problems on one site. I have assigned the “Home” page as the static front page and a page called “Blog” as the post page alternative. For some reason, the Blog page does not dynamically highlight that navigation link because wp_list_pages() is not throwing the “current_page_item” into the HTML.
Can anyone think of a reason why this is occurring? “Blog” is a “page”, and I see the the WP documentation says that “current_page_item” is applied as follows: “When wp_list_pages is called while displaying a Page, the list item for that Page will be given the additional class “current_page_item”. So, I have concluded that for some reason WP is not seeing the “Blog” page as a “page”. Make sense? Any help appreciated.
- The topic ‘Problem with “current_page_item” navigation highlighting’ is closed to new replies.