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

I am trying to use the wordpress menu setup and have a working horizontal menu with a drop down submenu. Unfortunately the sub enu is quite long so I wanted to split it into columns

I can do it if I hardcode the menu into header.php but that means I have to add new items rather than letting the client do it.

This is a parred down version of what I am trying to achieve

    <div class="headermenucss">

<ul id="topnav">
<li><a href="home.html" class="home">home</a></li>
<li><a href="about.html" class="home">About Us</a>
    <div class="sub">
    <li><a href="services.html">Services</a></li> 
    <li><a href="products.html">Products</a></li>

    <li><a href="terms.html">Terms</a></li>
    <li><a href="privacy.html">Privacy Policy</a></li>

    <li><a href="staff.html">Staff</a></li>
    <li><a href="vacancies.html">Vacancies</a></li>

<li><a href="clients.html" class="home">clients</a></li>
<li><a href="media_centre.html" class="home">media centre</a></li>
<li><a href="contact_us.html" class="home">contact us</a></li>
<li><a href="sitemap.html" class="home">site map</a></li>   


So what I need to do is to be able to loop through the child items and add in the etc as necessary.

Any tips, advice or anyone done this before?? TIA

share|improve this question
up vote 1 down vote accepted

I think it would be easier for you if you'd stick with the old menu output and used css to emulate your submenu columns. You can left-float the elements in your submenu (while giving them an appropriate with - e.g. 33% for 3 columns), which sorts them horizontally rather than vertically, but otherwise will give you a column-like effect.

share|improve this answer
That's a really good idea, took about 2 mins! – Andrew Benbow Mar 5 '11 at 20:10
oops, I meant to add, Thank you for the tip – Andrew Benbow Mar 5 '11 at 20:11
@Andrew Benbow: Cool, please accept the answer if it solved your problem. – wyrfel Mar 5 '11 at 21:10

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.