Current_Page_Item not working when using a page template
-
Hi everyone…I’ve searched on Google but could not find a solution for the following issue.
The current_page_item class (which obviously highlights the current menu item the user is viewing) works fine for all my pages. However, when I try and assign those pages a page template, the highlight disappears. On each page template, I am querying posts from a particular category. I checked the generated HTML and the current_page_item class doesn’t even show in the source code.
Mind you, I know how to work around this by hard coding the HTML for each page template, but I am looking for a more automated solution. Any advise will be greatly appreciated.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Current_Page_Item not working when using a page template’ is closed to new replies.