Title: Subtitle Filter
Author: Marcus Downing
Published: <strong>2011 年 5 月 6 日</strong>
Last modified: 2012 年 1 月 31 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/submenu-filter.svg)

# Subtitle Filter

 作者：[Marcus Downing](https://profiles.wordpress.org/marcusdowning/)

[下载](https://downloads.wordpress.org/plugin/submenu-filter.zip)

 * [详情](https://cn.wordpress.org/plugins/submenu-filter/#description)
 * [评价](https://cn.wordpress.org/plugins/submenu-filter/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/submenu-filter/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/submenu-filter/#developers)

 [支持](https://wordpress.org/support/plugin/submenu-filter/)

## 描述

When writing or modifying a theme, the function wp_nav_menu() displays the contents
of menus configured in your settings. If you have a lot of little menus the list
can get hard to manage, so this plugin lets you group several menus under a single
menu.

To use it, simply add a `submenu` parameter to the arguments of wp_nav_menu, like
so:

    ```
    wp_nav_menu(array(
      'menu' => 'header',
      'submenu' => 'About Us'
    ));
    ```

## 安装

Install this plugin in the normal way:

 1. Place it in your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the `wp_nav_menu` function with a `submenu` parameter in your templates
 4. wp_nav_menu(array(
     ‘menu’ => ‘header’, ‘submenu’ => ‘About Us’ ));

## 常见问题

  What happens if there’s no submenu with the right name?

It defaults to the main menu, the same as if the plugin wasn’t installed.

  How do I select a menu more than one level deep?

You can go several levels deep by putting slashes in:

    ```
    wp_nav_menu(array(
      'menu' => 'header',
      'submenu' => 'About Us/Board of Directors'
    ));
    ```

Or if you prefer with an array:

    ```
    wp_nav_menu(array(
      'menu' =>
      'submenu' => array('About Us', 'Board of Directors')
    ));
    ```

  Can I use a page’s slug?

No, the plugin uses the page’s title, not its slug.

  Do I have to type the title exactly the same?

The plugin should be forgiving of small differences in punctuation, capital letters
and so on as long as all the letters are the same.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Subtitle Filter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)

[帮助将「Subtitle Filter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/submenu-filter)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/submenu-filter/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/submenu-filter/)，或通过[RSS](https://plugins.trac.wordpress.org/log/submenu-filter/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/submenu-filter/)。

## 额外信息

 *  版本 **1.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.0 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/submenu-filter/)
 * 标签
 * [menu](https://cn.wordpress.org/plugins/tags/menu/)[nav](https://cn.wordpress.org/plugins/tags/nav/)
 *  [高级视图](https://cn.wordpress.org/plugins/submenu-filter/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/submenu-filter/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/submenu-filter/reviews/)

## 贡献者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/submenu-filter/)