I'm making a custom template for my client. Well i'm strangling for hours, for making the vertical accordion menu dynamic so my client can change the nav links etc. The structure of the navigation is this
<div id="navigation"> <ul> <li> <h4><a href="link">Menu title</a> </h4> </li> <li> <h4><a href="Link">Menu Title</a></h4> </li> <li> <h4>Menu Title with submenu</h4> <div> <span><a href="link">Submenu Title</a></span> <span><a href="link">Submenu title</a></span> </div> </li> </ul>
Its my first template in wordpress and I read the documentation i tried to experiment with the code which is in wordpress codex but I couldnt achieve it. I tried this and many experiments with that code but none of them worked. I want it to render the same way on the first example of code i gave you.
wp_nav_menu(array( 'container' => 'ul', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<li>%3$s</li>', ));
Can you help me a little? Thank you :)