custom menu not found

I’m not sure if I’ve followed you correctly; but I think you’re trying to build the Menu HTML entirely on your own. If I’m correct, then what you’re trying to do is covered under “Walker” object of wp-nav-menu.

You need to write a separate function in your functions.php and then pass the function name as “walker” to wp_nav_menu. It’s not as easy as letting WordPress do the HTML of Menu for you, but not too difficult as well.

I suggest you go through following link to get more idea of “Walker” stuff: Menu items description? Custom Walker for wp_nav_menu().

Let us know if this solves your problem.


*P.S.: May I know why you want to build HTML of Menu manually when WordPress can do it for you? I understand, sometimes theme’s artistic illustration of menu-bar makes it difficult for us to find that required design-redundancy to pass to wp_nav_menu… but if this not the case, then I feel you’ve opted a hard way to achieve desired results.

Leave a Comment