Show different menus for login / logout user [closed]
I placed your code in a line number editor to find line 63. I have marked the line with the extra } (well it’s in line 64 in my editor) This is a PHP error you got. Try to remove this line.
I placed your code in a line number editor to find line 63. I have marked the line with the extra } (well it’s in line 64 in my editor) This is a PHP error you got. Try to remove this line.
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.