Embedded Menus is a WordPress plugin that will allow you to embed an automatically generated page menu inside a WordPress page. Two types of menu are available:
- Sibling menu – All sibling pages of the current page, including the page itself
- Child menu – All child pages of the current page
To give an example, imagine a page structure as follows:
On the ‘About’ page you can embed a sibling menu and you will get:
Or you can embed a child menu and you will get:
Remember that the embedded menus are automatically generated – any changes to the page hierarchy will be instantly reflected on your site.
Installation is just like any WordPress plugin:
- Download Embedded Page Menus 1.0
- Upload to
/wp-content/pluginson your server
- Activate the plugin
Usage is very simple. Edit the post you wish to embed a menu inside and insert:
To embed a menu of all sibling pages. Or insert:
[embed menu child] To embed a menu of all child pages. Embedded menus are presented as an ordered list wrapped inside a div element with a class of
embedmenu. A default style is included with the plugin and can be changed to suit your own site.
You can specify an optional depth parameter to configure how many levels deep you want the menu to go. This is achieved by simply adding a number after the menu command:
This works the same for child and sibling menus, and a value of 0 indicates there is no limit (i.e. as many levels as needed will be displayed).
Less to version 1.4.3 are square brackets replaced by stars and without word ‘embed’ (e.g. ‘’ to ‘(.*?)*’).