Support
Support » Fixing WordPress » Shortcode support for custom menus in WordPress 3.0?
(@illusiodesign)
13 years, 9 months ago
Anyone know if WordPress 3.0 supports embedding shortcodes for the custom menus on pages and posts?
(@alhadis)
13 years, 7 months ago
I was just searching for this myself. As it turns out, I don’t think WordPress has a native shortcode for including custom menus inside post content.
However, a quick Google search had me stumble into this:
http://www.cozmoslabs.com/2010/06/28/wp_nav_menu-shortcode/
See if it helps. 🙂
Thanks Alhadis. I figured it out. You have to add this line of code to your functions.php file to get the shortcodes to work on the sidebars:
add_filter (‘widget_text’, ‘do_shortcode’);