Description
Easy Menu Shortcode allows you to display WordPress navigation menus anywhere on your site using the [menu id="123"]
shortcode. Replace 123
with the menu ID to render the desired menu.
Usage
To use the plugin, simply add the [menu id="123"]
shortcode anywhere in your content, replacing 123
with the ID of the desired menu.
Example:
`[menu id="2"]```
This shortcode will display the menu with the ID 2
.
How to Find Menu ID:
- Navigate to Appearance Menus in the WordPress admin dashboard.
- Hover over a menu in the list, and the menu ID will be visible in the URL (e.g.,
menu=123
).
Credits
- Developed by Harpreet Kumar.
- Inspired by the flexibility of WordPress menus.
License
This plugin is licensed under the GPL-2.0+ license.
Installation
- Upload the
easy-menu-shortcode
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Use the
[menu id="123"]
shortcode to display a menu, where123
is the menu ID.
FAQ
-
If no valid menu ID is provided or if the ID does not match any existing menu, the plugin will display an error message: “Menu not found. Please check the menu ID.”
-
Yes, the plugin includes basic styles. You can override these by adding custom CSS to your theme or site settings.
-
Yes, the plugin respects any classes or custom settings added to the menu via WordPress.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Easy Menu Shortcode” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Easy Menu Shortcode” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0
- Initial release.
- Added
[menu id="123"]
shortcode to render WordPress menus anywhere.