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

Auto Submenu

描述

By default, the menu system in WordPress only allows you to “Automatically add new top-level pages”, and does not offer the same functionality for new child pages. Auto Submenu solves that problem.

When activated, Auto Submenu will do its magic whenever you publish a new child page. If the new page’s parent is placed in a custom menu, then the new page will be added to that menu too (one level below its parent). Should you wish to reorder or delete the new page from the menu, you can simply do so on the admin Menus Screen.

The plugin does not have any settings. Auto Submenu will just work for all custom menus where the “Automatically add new top-level pages” setting is enabled.

屏幕截图

  • Publish a new child page.
  • And voila, the new child page has been added automatically to your custom navigation menu.

安装

The easiest way to install this plugin is via the admin’s Plugins screen.

Alternatively:

  1. Upload the auto-submenu directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

评价

2016年9月3日
This work simple and perfect. for me as a beginner with wordpress Thanks
2016年9月3日
An excellent tool, thank you! Flaws: 1. Needs better explanation on how to implement - getting started might seem intuitive to some, others (like myself) have to figure out how to start a new menu's "child" hierarchy correctly; 2. When adding new pages, MUST get it right first try; if you forget to make the new page a child (using "PARENT" drop-down), you cannot go back after and correct - the auto-add menu feature won't see it; have to redo /clone the page and get it right this time;
2016年9月3日
With or without that other box ticked, and with Setting Parent correct, it doesn't appear in the menu.
2016年12月23日
Sadly not working. Let me know if its gonna be compatible with my version(4.4.2) !
2016年9月3日
Good, saved me from a lot of work. Bookmarked
阅读所有22条评价

贡献者及开发者

“Auto Submenu” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Auto Submenu”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.2

  • Added support for multiple menus.

0.1

  • First release.