WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
<div class="news-features">
           <h5><a href="">News & Features</a></h5>
               <li><a href="">Industry News</a></li>

First Menu need h5 tag then others menu need ul li tage.

share|improve this question
can you explain? how would your HTML look like? you want all main items to have <H5>? – janw Apr 18 '12 at 11:22
yes, all main items <H5> – asraful Apr 18 '12 at 11:58

You'll have to extend the Walker class.

See /wp-includes/nav-menu-template.php for reference.

share|improve this answer
I solve this problem wp_nav_menu() + uses jQuery according to my requirement.following -->> <?php wp_nav_menu( array( 'menu' => 'fot-both', 'items_wrap' => '%3$s', container => false ) ); ?> and use jQuery.....wrap(). – asraful Apr 19 '12 at 12:16
@asraful While it's good you found a solution to your problem, using javascript to alter simple output is a very unclean solution. A custom walker would be the clean way to handle this. – Johannes Pille Apr 19 '12 at 12:26

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.