Blog page not recognized as current page from WordPress menu
-
I have a WP site that has a custom blog page. It’s a page with a custom page template to display posts (I’m using a static home page, too, if this matters). On this page, I have a menu in the sidebar which has links for a parent page as well as the child pages for this parent (the blog page is a child of this parent page). The WordPress menu is built using the WP menus, in the admin.
Normally, when navigating to any of the pages, the current page menu item gets a class of current-menu-item and current_page_item. This works on every page, except for the blog page. If I remove the loop from the page template, then the page is recognized as the current page. As soon as I get the loop back in there, it doesn’t recognize it as the current page.
I have no idea where to go from here. It’s a WP menu, so I can’t hardcode it. It’s being pulled into the sidebar via the Custom Menu widget. Any suggestions?
- The topic ‘Blog page not recognized as current page from WordPress menu’ is closed to new replies.