As I mentioned in Diving into WordPress I’ve started working with WordPress a bit. I’m getting the hang of it, but one thing that had me pulling my hair in frustration was creating a traditional hierarchical website submenu. I’m thinking of the kind of menu that normally appears in a sidebar when you’re in one of the sections of a horizontal top level menu.

There are multiple ways of creating menus in WordPress, but despite spending hours and hours searching the Web and testing plugins and code examples I couldn’t find a single example of a submenu that works the way I want it to (which happens to be the way submenus work in most other CMSs I have worked with).

So I ended up coding one myself.

Read full post

Posted in , .