Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a wp theme with this menu in header:

    <div id="header_nav">
        <ul id="nav" class="clearfloat">
            <li><a href="<?php echo get_option('home'); ?>/" class="on">Home</a></li> 
            <?php wp_list_pages('title_li='); ?>

I followed the tut here

and replace it with

<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

but it doesn't style at all like previously. So is it really the right way ?

share|improve this question

1 Answer 1

<?php wp_nav_menu( array('theme_location'  => 'primary or whatever you set it', 'sort_column' => 'menu_order', 'menu_id' => 'nav', 'menu_class' => 'clearfloat', 'container_id' => 'header_nav' ) ); ?>

Codex if your friend!

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.