Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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">
        <h4><a href="link">Menu title</a>
        <h4><a href="Link">Menu Title</a></h4>
        <h4>Menu Title with submenu</h4>
            <span><a href="link">Submenu Title</a></span>
            <span><a href="link">Submenu title</a></span>

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.

'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 :)

share|improve this question
Welcome at WPSE. Please add some code of what you have tried so far. –  kraftner Jun 8 at 22:18
Please edit you question and add it there. –  kraftner Jun 9 at 7:45
i updated my question –  hambos22 Jun 9 at 12:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.