wordpress - How to show different menu item based on logged user or logged out user -


i want show different menu items logged in user , not logged in user. suppose have menu below

 home | | contact | register 

now want show 3 menu after user logged in below

home | | contact 

above example facility provided wordpress default? or should manually?

try following. simple if statement see if user logged in.

<?php if ( is_user_logged_in() ) {     echo '<a href="/account">my account</a>'; } else {     echo '<a href="/signup">sign up</a>'; } ?> 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -