So I was playing around with this website, and I noticed when viewing the 404, search and some other custom WordPress pages it would highlight my “Blog” menu. How annoying!
Category: WordPress
WordPress get current page/post ID
How to get the current Page or Post ID in WordPress