內容簡介
Auto Submenu 外掛可自動將子頁面納入 WordPress 自訂選單中,提升選單管理的便利性。它支援自訂標題及子頁面層級設定,讓使用者能更靈活地組織網站內容。
【主要功能】
• 自動添加子頁面至選單
• 支援自訂標題及層級深度設定
• 與 Gutenberg 全站編輯器相容
• 提供自訂選單的即時預覽
• 可透過小工具快速設定選單
外掛標籤
開發者團隊
原文外掛簡介
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(
%post_date_gmt
%post_date_gmt()
%post_date_gmt(
