I am new to wordpress ,i use login and logout in my site,i already create pages for login , logout and register ,i wants to create 2 menu in navigation bar . one for register and another one for login and logout , before login 2 menus(login and register ) should visible and after login 1 menu(logout ) should visible,how can i make this possible,Please any one help me , without using plugin

closed as unclear what you're asking by fuxia Sep 11 '16 at 13:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • It's unclear what you're asking. may you please elaborate more? – Ethan Jinks O'Sullivan Sep 10 '16 at 13:17

First: Your question does not indicate that you have made any programming attempt to get this done.

Code to do this....

if ( is_user_logged_in() ) {
// your 'entire-menu code' or 'logout' link for logged in user 
} else {
// your 'Entire-menu code' or 'login / Register' links for logged out user 

Second: I am sure you don't know programming. So, use this plugin https://wordpress.org/plugins/nav-menu-roles/

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