Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
How to Use the Function is_user_logged_in To Display Different Menus?

I wish to create a log in page, that displays like an extended menu for example (the people who land on the page first will not see this extended menu)

Now is it a case that i create a page that uses one menu? And another page that uses a different menu?

However i have used the menu in the header, so would i need to create a different page template that calls one header showing X menu, and then another one that shows Y menu which the customers will be directed to when they "log in"

Thankyou in advance. Kirsty

share|improve this question

marked as duplicate by Chip Bennett, kaiser, toscho Nov 28 '12 at 13:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
By the way, did you try searching the site for related questions before posting? This one has been asked several times. –  Chip Bennett Nov 28 '12 at 12:49

1 Answer 1

Use the is_user_logged_in() conditional to output a different menu depending on user login state. For example:

$theme_location = ( is_user_logged_in() ? 'header_logged_in' : 'header_not_logged_in' );

wp_nav_menu( array(
    'theme_location' => $theme_location
);
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.