At the DMA when building WordPress sites, we regularly come across things that we do over again. Building custom menu is certainly one of those things.
One of the common requirements we’ve met is a menu that works with parent and child pages, when a visitor is on a child page the menu should show all of the pages in that section but not others.
So recently we’ve set about turning our code into a new plugin for WordPress and not it’s available for others to use!
If you’re interested in such a plugin, check out the info here, there’s even a short video that shows you a demo.