Have multiple navigation headers

Now that I have created by membership site I need a way to navigation the members only area.

How can I change the header/navigation on all of the protected pages.

Example: the main company website is purely information for potential clients.

The membership area is for salespeople to login and access company information. Once they login, the navigation needs to be able to change so that they can see all of the pages available to them.

Make sense? Any suggestions on how to accomplish this? Some of the options I have seen such as installing two copies of WP on the server seemed above my experience level.

  • Vaughan
    • Support/SLS MockingJay

    hiya

    thanks for the post.

    i think you would need to create a unique custom menu just for logged in users.

    then edit your themes header template, and use shortcode in the template using do_shortcode()

    then you can switch between different custom menus or just get the member level with an if condition..

    use http://codex.wordpress.org/Function_Reference/wp_nav_menu to display different nav_menu.

    so something like this in your themes header.

    <div id="menu">
    <?php
    if ( user_is_logged_in() && $member_level == 1) ) {
    wp_nav_menu( array('menu' => 'Menu1' ));
    } elseif ( user_is_logged_in() && $member_level == 2) ) {
    wp_nav_menu( array('menu' => 'Menu2' ));
    } else {
    wp_nav_menu( array('menu' => 'Menu3' ));
    }
    ?>
    </div>

    you’d need some code to actually get the members level. but that’s pretty much how it would be done.

    hope this helps.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.