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

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

WBOY
WBOYOriginal
2016-06-13 12:14:091165browse

wordpress 里面如何只获取菜单的名称和链接? wp_nav_menu会把样式取出.
现在想只取菜单名称和链接,新定义不同的样式。
------解决思路----------------------

本帖最后由 fdipzone 于 2015-01-21 14:08:48 编辑
<br />$items = wp_get_nav_menu_items( $menu, $args );<br />


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