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

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

WBOY
Release: 2016-06-13 12:14:09
Original
1145 people have browsed it

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

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


http://www.dmeng.net/wp_get_nav_menu_items.html
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template