<?php $defaults = array(
'theme_location' => ,
'menu' => ,
'container' => 'p',
'container_class' => 'menu-{menu slug}-container',
'container_id' => ,
'menu_class' => 'menu',
'menu_id' => ,
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => ,
'after' => ,
'link_before' => ,
'link_after' => ,
'depth' => 0,
'walker' => );
?>
假如是多菜单的话,如下调用
<?php echo wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ) ?>
依据能否登录生成不同该菜单栏
<?php
1 |
'before' => ,<BR> 'after' => ,<BR> 'link_before' => ,<BR> 'link_after' => ,<BR> |
以上就是安达网络工作室关于《wordpress之wp_nav_menu使用说明》的一些看法。更多内容请查看本栏目更多内容!
在 WordPress 后盾,用户是依照用户名排序的,并且没有显示注册工夫,假如咱们心愿可以在后盾看到用户的注册...
很多WordPress站长都常常遭到渣滓评论的滋扰,针对这种状况,采纳上面的代码可能会对你有所协助。将以下代码...
WordPress 3.0 引入导航菜单性能, 让页面的导航和链接的治理变得简略易用. WP 向用户提供了菜单治理页面和多...
本文实例讲述了Wordpress将选中内容分享到新浪腾讯微博的办法。分享给大家供大家参考。详细办法如下: 1、引...
复制代码代码如下: /* Theme Name: 这里填主题称号 Theme URI: 这里填主题引见的网址,没有就填你的博客网址...
首先,你需求理解query_posts函数。该函数的作用就是对文章进行检索、筛选、排序,在其后的LOOP循环中应用通...