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).
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
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.
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.
Use Page Links To plugin by Mark Jaquith. Edit top level page and in section Page Links To select An alternate URL and enter # as an URL.
Create a custom link and drag it to the menu:
You can put in Custom links from the wordpress menu dashboard.