I am using the wordpress plugin and need to display one menu if not logged in, and another menu if logged in. Below is what I have so far...not working: /**Swap nav for member logged in */ session_start(); $user = $_SESSION['_amember_user']; if ($user['member_id'] > 0) { //Not a member logged in, use first menu add_action( 'genesis_after_header', 'genesis_do_nav' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); } else { //Member, use second menu remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_after_header', 'genesis_do_subnav' ); }
I can't help you with code; however, I could suggest a possible solution. You can do a lot with the WordPress Custom Menu by using the built-in aMember features and a plug-in. Take a look at this video. I used aMember and one free plugin: Menu Items Visibility Control to do this. http://www.screencast.com/t/qNAFZy4wLtL3