• Hi,

    I want do display only the 3rd level of my main menu on some pages but I can’t get it to work. I’ve tried this code:

    <?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => false, 'walker' => new custom_menu_walker() 'depth' => 3) ); ?>

    But does not display only the 3rd level. How can I solve this?

    Thanks in advance!

The topic ‘How to customize the walker menu?’ is closed to new replies.