Viewing 1 replies (of 1 total)
  • Hi Fetch Designs,

    Thanks for this and thanks to travis as well for the great plugin.

    Just for those who are wondering how to put it into a horizontal menu as a nav instead on li and ul’s

    you can use this code

    <?php wp_nav_menu(array( 'menu' => 'header', 'container' => 'false', 'depth' => -1, 'echo' => 'false', 'items_wrap' => '<nav id="%1$s" class="%2$s">%3$s</nav>', 'submenu' => (string) $post->ID ));
    $find = array('><a','<li');
    $replace = array('','<a');
    echo str_replace( $find, $replace, $cleanermenu ); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Get submenu based on curent page ID’ is closed to new replies.