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

Is there a way I can display a menu in my theme that isn't formatted in a list? i just want to display the <a> tags without the <li> tags.

is this possible?

theme file:

<?php wp_nav_menu( array( 'theme_location' => 'navigation' ) ); ?>


function register_my_menus() {
    register_nav_menus(array('navigation' => __( 'Main Nav' )));

add_action( 'init', 'register_my_menus' );

Edit: see my answer below, found on Stack Overflow

share|improve this question
Take a look at this: kriesi.at/archives/… – kramdraw85 Jan 25 '12 at 19:06
up vote 1 down vote accepted

It looks like what i'll need to do is look at a customized menu walker, as suggested at this thread over on Stack Overflow:


From there, looking at suggestions I found:


That's solved this perfectly!

share|improve this answer

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.