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

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

WBOY
Release: 2016-06-23 13:41:08
Original
930 people have browsed it

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


回复讨论(解决方案)

$items = wp_get_nav_menu_items( $menu, $args );
Copy after login


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

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