'',
'container' => 'div',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'walker' => '',
'theme_location' => ''),
$atts));
return wp_nav_menu( array(
'menu' => $menu,
'container' => $container,
'container_class' => $container_class,
'container_id' => $container_id,
'menu_class' => $menu_class,
'menu_id' => $menu_id,
'echo' => false,
'fallback_cb' => $fallback_cb,
'before' => $before,
'after' => $after,
'link_before' => $link_before,
'link_after' => $link_after,
'depth' => $depth,
'walker' => $walker,
'theme_location' => $theme_location));
}
function redirect_to($atts, $content = null) {
extract(shortcode_atts(array(
'location' => '',
'duration' => '',),
$atts));
echo '';
echo "Please wait while you are redirected...or Click Here if you do not want to wait";
return ob_get_clean();
}
//Create the shortcode
add_shortcode("listmenu", "list_menu");
add_shortcode("redirect", "redirect_to");
add_filter ('widget_text', 'do_shortcode');