hi,everybody,i need to implement different menus in my Response wordpress site.if the user didn't login to our site i need to display one menu,and when he login to our site i need to show another menu.can it possible here ?.if so, please suggest me
Have you tried this plugin already? http://wordpress.org/extend/plugins/wp-custom-menu-filter-plugin/
if you want to use custom code you can try this dashboard > Appearance > Menu create 2 different menu 1. register-user (menu that will appear for registered user) 2. unregister-user (menu that will appear for unregistered user) note: u must have custom menu function on your theme now open your theme using notepad++ or something else and find something that similar like this <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> Code (markup): and than change to something like this one <?php if( is_user_logged_in() ) { $menu = 'register-user'; } else { $menu = 'unregister-user'; } wp_nav_menu( array( 'menu' => $menu, 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> Code (markup): that code will detect if user login, the menu that will use is menu from register-user and if not it will use menu from unregister-user hope this can help
Whenever I attempt to create a new menu through dashboard>appearance>menu I receive an error "You do not have sufficient permissions to access this page.". I checked the file permissions and they are 755. Might you have some suggestions as to how to deal with that? Thanks.