Linux 软件免费装
Banner图

wp_nav_menu Extended!

开发者 junaidbhura
更新时间 2022年1月29日 08:55
PHP版本: 3.0 及以上
WordPress版本: 5.9
版权: GPL2
版权网址: 版权信息

标签

menu wp_nav_menu

下载

1.0.1 1.0.0 1.0.2

详情介绍:

Add missing functionality to the native wp_nav_menu() function! With this plugin you can now use the following options in addition to the default options of wp_nav_menu: level : (integer) (required for this plugin to work) The level of the navigation menu to show. If no child_of parameter is passed, it shows all the items of this level child_of : (string|integer) (optional) Either the title or menu item ID of the parent in the menu whose direct children are to be shown Sample Usage $defaults = array( 'theme_location' => 'main_menu', 'level' => 2, 'child_of' => 'About Us', ); wp_nav_menu( $defaults );

安装:

  1. Upload the wp-nav-menu-extended folder to the /wp-content/plugins/ directory
  2. Activate the wp_nav_menu Extended! plugin through the 'Plugins' menu in WordPress
  3. You can now use the new options in your code!