Home >Backend Development >PHP Tutorial >wordpress 里面如何只获取菜单的名称和链接? wp_nav_menu会把样式取出.

wordpress 里面如何只获取菜单的名称和链接? wp_nav_menu会把样式取出.

WBOY
WBOYOriginal
2016-06-23 13:41:08929browse

现在想只取菜单名称和链接,新定义不同的样式。


回复讨论(解决方案)

$items = wp_get_nav_menu_items( $menu, $args );


http://www.dmeng.net/wp_get_nav_menu_items.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn