wp_nav_menu实现只有a没有li

Published
2022-10-31
浏览次数 :  176

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

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

  • 标签1
  • 标签1
  • 标签1
Top