Skip to content

co-b/auto-submenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This fork enables auto-adding subpages to all menus without needing to check "automatically add top level pages".
This prevents the issue where a client adds a new parentless page and it automatically gets appended to every existing menu.


=== Auto Submenu ===
Contributors: jamocreations
Tags: admin, menu, submenu, subpages, child pages, page, pages, navigation
Requires at least: 3.0
Tested up to: 3.9
Stable tag: 0.2

WordPress can only automatically add new top-level pages to menus. With Auto Submenu, new child pages will also be automatically added to menus.

== Description ==

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.

== Installation ==

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.
1. Activate the plugin through the 'Plugins' menu in WordPress.

== Screenshots ==

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

== Changelog ==

= 0.2 =
* Added support for multiple menus.

= 0.1 =
* First release.