By default, WordPress only parses shortcodes in the main content area. Suppose you want to use shortcodes (WP-Members or otherwise) in locations other than the body text? Here are some snippets you can add to your theme’s functions.php file to allow the use of shortcodes in the sidebar, comments, and excerpts:
Allow parsing of shortcodes in the sidebar:
add_filter( 'widget_text', 'do_shortcode' );
Allow parsing of shortcodes in comments:
add_filter( 'comment_text', 'do_shortcode' );
Allow parsing of shortcodes in excerpts:
add_filter( 'the_excerpt', 'do_shortcode' );
Allow parsing of shortcodes in menu items:
add_filter( 'wp_nav_menu_items', 'do_shortcode' );