Title: Auto Subpage Menu
Author: jojoee
Published: <strong>2015 年 8 月 27 日</strong>
Last modified: 2020 年 8 月 4 日

---

搜尋外掛

![](https://ps.w.org/auto-subpage-menu/assets/banner-772x250.png?rev=1232426)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/auto-subpage-menu_04b48d.svg)

# Auto Subpage Menu

 由 [jojoee](https://profiles.wordpress.org/jojoee/) 開發

[下載](https://downloads.wordpress.org/plugin/auto-subpage-menu.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/auto-subpage-menu/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/auto-subpage-menu/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/auto-subpage-menu/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/auto-subpage-menu/#developers)

 [技術支援](https://wordpress.org/support/plugin/auto-subpage-menu/)

## 外掛說明

By default wordpress menu system, wordpress can only automatically add/remove **
top-level page** to/from menus

 * When **publish** top-level page then add it into menus
 * When **move** top-level page to trash then remove it from menus
 * When **restore** top-level page then add it into menus

this feature has no effect with **subpage** (child page), but **Auto Subpage Menu**
can

 * When **publish** subpage (child page) then add it into menus (if its page parent
   exists in menu)
 * When **update** subpage (child page) then update menus
 * When **move** subpage (child page) to trash then remove it from menus
 * When **restore** subpage (child page) then add it into menus

### 記事

 * [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
 * [phpDocumentor](http://www.phpdoc.org/) DocBlock Standard
 * [Auto Subpage Menu](https://wordpress.org/plugins/auto-subpage-menu/) – WordPress
   Directory Uri
 * 2 spaces for indent
 * [Repository on Github](https://github.com/jojoee/auto-subpage-menu)

### TODO

 * [ ] Implement DocBlock to all
 * [ ] Automatically update child-page when its parent have been move, suggested
   by [ncwebdev](https://wordpress.org/support/profile/ncwebdev), [topic](https://wordpress.org/support/topic/menu-link-doesnt-work-properly-when-moving-a-page)
 * [ ] Add other versions into wordpress download page

## 螢幕擷圖

 * [[
 * When publish subpage then add it into menus (screenshot-1.jpg)
 * [[
 * When update subpage then update menus (screenshot-2.jpg)
 * [[
 * When trash subpage then remove it from menus (screenshot-3.jpg)
 * [[
 * When restore subpage then add it into menus (screenshot-4.jpg)

## 安裝方式

 1. Install the plugin via plugin’s dashboard or download and upload this plugin into`
    wp-content/plugins` directory
 2. Activate the plugin through the **Plugins** menu in WordPress
 3. Go to **Menus** and check `Automatically add new top-level pages to this menu`
 4. Let’s see the magic

## 常見問題集

### How to use it

activate the plugin on your plugin dashboard (`/wp-admin/plugins.php`)

### How it work

please see [screenshot](https://wordpress.org/plugins/auto-subpage-menu/screenshots/)

## 使用者評論

![](https://secure.gravatar.com/avatar/869d14be36a79ae9df4cf87ef778efc028b2f29b511b8c65814ed30a4f11beb3?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-3301/)󠁿

 [stevied](https://profiles.wordpress.org/stevied/) 2023 年 2 月 19 日 1 則留言

Been spending hours looking for a module that did exactly this. The only two other
modules I found were no longer maintained. Another module I found did not really
work as advertised. This feature is sorely needed feature in WP. The current method
of having to go to the menu admin to add in a page to the menu is often very confusing
for my clients. This module still works on WP 6.1.1. I hope you can continue to 
maintain it.

![](https://secure.gravatar.com/avatar/95879de0cdfcaaed6b7b69a3a188b29a86f050f2738ca85f56d26d4a5310a721?
s=60&d=retro&r=g)

### 󠀁[does a great job](https://wordpress.org/support/topic/does-a-great-job-29/)󠁿

 [Marklcm](https://profiles.wordpress.org/marklcm/) 2017 年 10 月 3 日

thanks for building & maintaining

![](https://secure.gravatar.com/avatar/97befe31369b733f206fb2193c75a82fe15c49b105799c1a8735f277748b1f7d?
s=60&d=retro&r=g)

### 󠀁[Good idea but bad support](https://wordpress.org/support/topic/good-idea-but-bad-support/)󠁿

 [Harm10](https://profiles.wordpress.org/harm10/) 2017 年 9 月 27 日

The idea is good but the support is not very good. So if you find another plug-in
with similar functionality I would advise to try that!

![](https://secure.gravatar.com/avatar/8fb9e5be0bd0705d3231c20cdf43f77c1bd37e2f79d1663f7c07a3316bec344b?
s=60&d=retro&r=g)

### 󠀁[works …. But a few things to keep in mind](https://wordpress.org/support/topic/works-but-a-few-things-to-keep-in-mind/)󠁿

 [andy0829](https://profiles.wordpress.org/andy0829/) 2017 年 6 月 21 日 1 則留言

It doesn’t work for any existing parent/child pages , it only works on pages created
after the plugin is installed. You must enable – “Automatically add new top-level
pages to this menu” on the menu , if not activated , it also won’t work.

![](https://secure.gravatar.com/avatar/9d6a60d0afcf12b8b7647535914954dea25ebb8d3159da465158b003d4b5c8ea?
s=60&d=retro&r=g)

### 󠀁[works flawlessly](https://wordpress.org/support/topic/works-flawlessly-76/)󠁿

 [sztibu](https://profiles.wordpress.org/sztibu/) 2017 年 2 月 23 日

Works as described. Useful plugin.

![](https://secure.gravatar.com/avatar/4429eb1c1a82dc90dcb38970c51ace284fc833923dc35f12af242b696d139ee7?
s=60&d=retro&r=g)

### 󠀁[does not work on multilanguage site with more than 1 menu](https://wordpress.org/support/topic/does-not-work-on-multilanguage-site-with-more-than-1-menu/)󠁿

 [thecasinokoala](https://profiles.wordpress.org/thecasinokoala/) 2016 年 12 月 
21 日

how can I get this to work with polylang or any simliar plugin for multilanguages.
the “original wordpress” function works very well: i create a new DE-site, I get
a new DE-menu item. I create a new EN-Site, I get a new EN-Site. BUT by using this
plugin it should work for child items as well. but it doesn’t. If i create a new
DE-site-CHILD, I get a new DE-menu item (child). If I create a new EN-Site-child,
I DON’T get a new EN-Site (child).

 [ 閱讀全部 12 則使用者評論 ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Auto Subpage Menu〉的開發相關工作。

參與者

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

[將〈Auto Subpage Menu〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/auto-subpage-menu)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/auto-subpage-menu/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/auto-subpage-menu/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/auto-subpage-menu/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/auto-subpage-menu/)。

## 變更記錄

#### 1.1.4 (24 Apr 2016)

 * Fix issue – plugin is not working if not using default table prefix (wp_), found
   and fixed by [ncwebdev](https://wordpress.org/support/profile/ncwebdev), [topic](https://wordpress.org/support/topic/menu-link-doesnt-work-properly-when-moving-a-page)
 * Update code style
 * Add TODO section

#### 1.1.3 (14 Feb 2016)

 * Update meta (readme file, description, link)

#### 1.1.2 (27 Aug 2015)

 * Update readme file according wordpress readme file standard

#### 1.1.1 (26 Aug 2015)

 * Change file name from README.md to readme.txt
 * Update plugin description

#### 1.1.0 (24 Aug 2015)

 * Fix issue (twice add child page to menus when update with unchanged page parent)
 * Refactoring

#### 1.0.0 (23 Aug 2015)

 * First release

## 中繼資料

 *  版本 **1.1.5**
 *  最後更新 **6 年前**
 *  啟用安裝數 **800+**
 *  WordPress 版本需求 ** 3.3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.4.19**
 *  語言
 * [English (US)](https://wordpress.org/plugins/auto-subpage-menu/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[child page](https://tw.wordpress.org/plugins/tags/child-page/)
   [menu](https://tw.wordpress.org/plugins/tags/menu/)[menus](https://tw.wordpress.org/plugins/tags/menus/)
   [navigation](https://tw.wordpress.org/plugins/tags/navigation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/auto-subpage-menu/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  9 個 5 星使用者評論     ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/?filter=3)
 *  [  2 個 2 星使用者評論     ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/auto-subpage-menu/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/auto-subpage-menu/)