Linux 软件免费装

Child Navigation

开发者 hildende
更新时间 2015年5月12日 10:16
捐献地址: 去捐款
PHP版本: 3.2 及以上
WordPress版本: 4.2
版权: GPLv3 or later
版权网址: 版权信息

标签

pages navigation children wp_nav_menu child sub

下载

1.1.0 1.1.1 1.0.0

详情介绍:

With installing this plugin you add functionality to wp_nav_menu() to show only children of the current page or start with a specific navigation level.

安装:

  1. Upload child-navigation directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
Show only children of current page For showing all children of the current page set children_only as argument to TRUE in wp_nav_menu(). <?php wp_nav_menu( array ( 'children_only' => TRUE ) ); ?> Show all items starting at specific navigation level For showing all pages in the current root line, starting at a specific navigation level, set children_start_level as argument with the wanted start level as value. <?php wp_nav_menu( array ( 'children_start_level' => 2 ) ); ?> Show current page/start level in child navigation With children_show_start_level set to TRUE the current page is shown in navigation if children_only is set or starts with children_start_level, if children_start_level is set. <?php wp_nav_menu( array ( 'children_show_start_level' => TRUE, // use either 'children_only' => TRUE, // or 'children_start_level' => 2, ) ); ?> The argument depth will be relative to the first displayed level.

更新日志:

1.1.1 1.1.0