Auto Submenu

Auto Submenu Install Statistics

0
100%
Today: 23 Yesterday: 23 All-time: 33,303 downloads
Auto Submenu Icon

Try plugin: Auto Submenu

We'll create fresh WordPress site with Auto Submenu installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Auto Submenu

Dynamic menus: Add a page to your menu and then let WordPress automatically add the child pages.

15


2


2


0


5

updated: 7 months ago
since: 12 years ago

Description

The default custom menu in WordPress only allows checking the “Automatically add new top-level pages” (Appearance > Menus) or adding a Navigation block with all pages and all child pages (Appearance > Editor).

With Auto Submenu you get extra functionality to automatically include child pages into the menu.

NEW: ASM now provides support for the Customizer via Appearance > Customize
NEW: ASM now provides support for Full Site Editing with the Gutenberg Block Editor via Appearance > Editor

Using it

Enable the plugin and go to Appearance > Editor.

For each Page in your menu, you now have the following extra configuration options:

  • Add child pages as submenu y/n;
  • child pages are ordered ascending by Menu Order;
  • specify the (maximum) nesting depth of children you want to show (max 3);
  • specify the title for the child pages. For this you can use %post_title, %post_author and other wildcards, see ‘Other Notes > Wildcards’. Default value: %post_title

Via Appearance > Menus and Appearance > Customize you also get the following option:

  • Check the “Automatically add new top-level and all its child pages to this menu (Auto Submenu)”-checkbox.
  • If this option is checked, all top-level pages will automatically be added and will automatically have all child pages added as submenu.

With the Free version you cannot control the nesting depth of the child pages, all subpages are added, regardless the depth of the page tree.

Wildcards

You can control the title of the menu items generated by the plug-in with the following wildcards:

  • %post_title
  • %post_author
  • %post_date for the unformatted post date: 2012-11-10 18:14:23
  • %post_date() for a formatted post date with the following default formatting: November 10th, 2012
  • %post_date(<your formatting here>) for custom date formatting. Example: %post_date(l jS \of F Y, h:i:s A). See https://codex.wordpress.org/Formatting_Date_and_Time for formatting options.
  • %post_date_gmt
  • %post_date_gmt()
  • %post_date_gmt(<your formatting here>)