Auto Subpage Menu Plugin
By default wordpress menu system, wordpress can only automatically add/remove top-level page to/from menus
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
Notes
TODO
- [ ] Implement DocBlock to all
- [ ] Automatically update child-page when its parent have been move, suggested by ncwebdev, topic
- [ ] Add other versions into wordpress download page
Installation
- Install the plugin via plugin’s dashboard or download and upload this plugin into
wp-content/plugins
directory - Activate the plugin through the Plugins menu in WordPress
- Go to Menus and check
Automatically add new top-level pages to this menu
- Let’s see the magic
Screenshots
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)
FAQ
How to use it
activate the plugin on your plugin dashboard (/wp-admin/plugins.php
)
How it work
please see screenshot
Changelog
1.1.4 (24 Apr 2016)
- Fix issue – plugin is not working if not using default table prefix (wp_), found and fixed by ncwebdev, topic
- 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)