<?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是应用主标题录下page.php来作为模板显示页面的,然而有时分咱们需求不同...
一、增加一个存储投稿者邮箱的自定义栏目 关上WordPress增加投稿性能,上面咱们将对这篇文章中的代码进...
这里选取的例子,便是 WordPress 中比拟有名的丑化超链接Title成果,普通的 title 成果是把鼠标放到 a 元素...
概述 最近买了台效劳器,预备搭建集体博客,来继续更新本人的博客, 环境 效劳器操作零碎:CentOS 7.0 ...
前几天见到某 Blog (遗记名字和网址了) 有一个相当适用的评论性能. 访客留言之后材料输出框会被暗藏起来, 好...
本文实例讲述了wordpress首页不显示指定分类文章的办法。分享给大家供大家参考。详细剖析如下: 有时咱们不...