$menuParameters = array(
'container'=>false,
'echo'=>false,
'item_wrap'=>'%3$s',
'depth'=>0,
'theme_location' => 'PrimaryMenu',//导航别名
);
echo strip_tags(wp_nav_menu($menuParameters),'<a>');
个人博客 :https://www.zihanzy.com 欢迎来访