GithubHelp home page GithubHelp logo

auto-submenu's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.