Prevent Menu Shortcode From Formatting
I haven’t tested it but most of the time, a good way to disable shortcode, e.g in posts is to double [ like this : [[shortcode]] Hopefully this will work in this context.
I haven’t tested it but most of the time, a good way to disable shortcode, e.g in posts is to double [ like this : [[shortcode]] Hopefully this will work in this context.
As toscho pointed out the container argument should be left out or set to an empty string, and a menu should be created and assigned to the menu location (primary in this example).
WP_Nav Highlight Parent Issue
You will need to add a class to the correct menu item yourself. Here is a similar example which you can modify according to your needs: http://wpthemetutorial.com/2013/05/14/filtering-classes-on-wp_nav_menu/
Building Menus with the latest posts included
I’ve solved it with hard coding. I know, it isn’t a great answer, but there was no other choice. Redirecting this plugin wasn’t possible.
Use the ‘theme_location’ argument in header-anesthesia.php: wp_nav_menu( array( ‘theme_location’ => ‘anesthesia-menu’ ) ); WordPress will look for a menu assigned to this location now and pick that instead of the default menu.
If you mean the main menu bar at the top– the one with the grey background– then look for id=”header” in your theme files, maybe in header.php but I can’t promise that. Then move that associated div to below your content. That will mean moving it to another file, maybe footer.php but again I can’t … Read more
Use wp_dropdown_pages(): print ‘<form action=”‘ . home_url() . ‘”>’; wp_dropdown_pages(); print ‘<input type=submit></form>’; You get a select field with proper indentation, and clicking on the button will send the user to that page.
wp_nav_menu with no arguments and no menus defined in the back end at wp-admin->Appearance->Menus (which sounds like the circumstance you describe) just lists your pages, plus a “Home” link. That is done by calling wp_page_menu, the default callback for wp_nav_menu, which means that under those conditions you can alter that text by hooking to wp_page_menu_args … Read more