Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/nickdavis/submenu-from-group-blocks/archive/refs/heads/master.zipOn Packagist as nickdavis/submenu-from-group-blocks:
composer require nickdavis/submenu-from-group-blocksNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Submenu from Group Blocks
WordPress plugin which generates a submenu from Group block ID attributes in the WordPress block editor. Requires developer setup.
Usage
In the block editor, add an ID attribute to the Group block you want to add to your submenu, via the HTML anchor field under the Advanced section of the Block side panel.
The ID attribute will then be passed to a submenu view as both a title and as an ID. So, for example, an HTML anchor of Special-Offers would give you a title of Special Offers and an ID attribute of the same (Special-Offers).
Finally, for non block themes, you will need to place the submenu where you want it in your theme by adding at the appropriate location and then adding a view for the submenu at partials/submenu-group-blocks.php.
Block theme support coming soon 🤞.