Auto Submenu
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( ) 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( )
Navception
About Navception Navception: The act of embedding a pre-constructed WordPress Menu inside another WordPress Menu. Navception adds a simple feature to WordPress Menus, but opens the door to powerful possibilities. New to your WordPress Nav Menu editor, is a box that lets you add menus into your menus! This allows you to create one menu to include as a submenu once in another menu, multiple times in another menu, or multiple times in multiple menus. What makes this so powerful is that if you decide that your submenu needs another link added to it, you only have to update it in one place! Navception, a simple concept with powerful results! Let’s look at a couple of scenarios: Without Navception If you have a submenu you need repeated across your site: First you have to add all the links everywhere you want the submenu, then to update the submenu you have to modify the links everywhere the submenu exists. If you have too many menu items in your menu: You have to pick and choose which menu items are removed to make room for new ones. With Navception If you have a submenu you need repeated across your site: First you create the submenu as a stand-alone WordPress menu and embed it where you need it once, then to update the submenu you only need to modify the links in the stand-alone menu. If you have too many menu items in your menu: You make some of the submenus separate WordPress menus and embed those new menus into the original menu to make room for more menu items. Navception’s Inception Navception became a thought when working on a client’s main menu. This menu was a typical 3 level menu, with two submenus that were repeated 4 times each. Those submenus were a hassle to add and a pain to maintain. When I realized that I wanted a plugin that allowed me to create a submenu once and include it as a menu item in a separate menu, I was surprised to find that no such plugin existed. Navception became a necessity when working on that same client’s main menu. This menu became so large that I received the following warning: “You are approaching the post variable limit imposed by your server configuration. Exceeding this limit may automatically delete menu items when you save.” It turns out that every Nav Menu Item in the WordPress Admin area has roughly 8 inputs associated with it. One of the aforementioned submenus contained 7 menu items, or 56 inputs. Using Navception, I created that submenu as a stand-alone WordPress menu, then included it as 1 menu item in the client’s main menu. This reduced the inputs generated by that submenu from 56 to 8. Since that submenu was included 4 times, I not only avoided the Post Variable Limit, but I also made the menu easier to manage. Dangers of Navception When embedding menus in other menus, you must take care not to include the same menu in itself. When done directly or indirectly, this can cause your website to go into an infinite loop (aka Limbo) when attempting to display the menu. I added some safeguards to keep you from accidentally causing this to happen, though I’m only 90% confident that I covered all scenarios. If you ever put your website into Limbo, you only need to remove the menu you embedded, then please make a post in the support forum telling me what you did so I can cover that case as well.