wp_nav_menu不要ul和li的写法

Published
May 18, 2022
浏览次数 :  1

$menuParameters = array(
                          'container'       => false,
                          'menu' => 'topbar menu',
                          'echo'            => false,
                          'items_wrap'      => '%3$s',
                          'depth'           => 0,
                        );

                        echo strip_tags(wp_nav_menu( $menuParameters ), '<a>' ); ?>

Top