WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode support for custom menus in WordPress 3.0? (3 posts)

  1. illusiodesign
    Member
    Posted 3 years ago #

    Anyone know if WordPress 3.0 supports embedding shortcodes for the custom menus on pages and posts?

  2. alhadis
    Member
    Posted 3 years 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. :)

  3. illusiodesign
    Member
    Posted 3 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Topic