Title: Custom Post Type Submenu
Author: receter
Published: <strong>2012 年 6 月 29 日</strong>
Last modified: 2013 年 9 月 17 日

---

搜索插件

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

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

# Custom Post Type Submenu

 作者：[receter](https://profiles.wordpress.org/receter/)

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

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

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

## 描述

Adds a new menu item type that shows all posts for a given post type as children.
If the post type has an archive, the parent menu item will link to the archive. 
If there is no archive for a given post type, the parent will link to the first 
child.

For Example: If you have a custom post type “products”, adding “products” to a nav-
menu will result in a menu item “products” with all products in the submenu.

### Roadmap

 * Provide for configuration of limit (ie: numposts).

## 安装

 1. Upload `menu-posts-in-category/` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add a Custom Post Type to a WordPress menu

## 评价

此插件暂无评价。

## 贡献者及开发者

「Custom Post Type Submenu」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ receter ](https://profiles.wordpress.org/receter/)
 *   [ queenvictoria ](https://profiles.wordpress.org/queenvictoria/)

[帮助将「Custom Post Type Submenu」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-submenu)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Initial version

#### 0.2

 * Fixed a bug where the spinner wheel was displayed all the time.
 * Links to archive instead of first child if the custom post type has has_archive
   = true

## 额外信息

 *  版本 **0.2**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.6 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-post-type-submenu/)
 * 标签
 * [cpt](https://cn.wordpress.org/plugins/tags/cpt/)[menus](https://cn.wordpress.org/plugins/tags/menus/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-post-type-submenu/advanced/)

## 评级

 2 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/custom-post-type-submenu/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/custom-post-type-submenu/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/custom-post-type-submenu/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/custom-post-type-submenu/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/custom-post-type-submenu/reviews/?filter=1)

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

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

## 贡献者

 *   [ receter ](https://profiles.wordpress.org/receter/)
 *   [ queenvictoria ](https://profiles.wordpress.org/queenvictoria/)

## 支持

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

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