• Resolved glepage

    (@glepage)


    I’m a newbie..

    Goal:
    To display, in order, only the ‘parent’ links/titles of a custom navigation menu. Menu name is ‘navHorizontal’.

    This currently displays, in order, the ‘parent’ items of a custom Nav Menu’s I’ve created but it’s displaying the wrong menu.
    So close to working..

    <?php wp_nav_menu( 'sort_column=menu_order&title_li=&depth=1' ); ?>

    In other words, navHorizontal needs to be added to the above code.

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter glepage

    (@glepage)

    Found it..

    This solved the problem…

    <?php wp_nav_menu( array( ‘menu’ => ‘navHorizontal’, ‘depth’ => ‘1’ )); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How to call 'parent' links/titles of a custom navigation menu’ is closed to new replies.