Adding link for logged in user?
-
<?php if ( is_user_logged_in() ) { '<a class="btn" href="/author/<?php global $current_user; get_currentuserinfo(); echo $current_user->display_name; ?>">Channel</a>'; } else { echo 'Welcome, visitor!'; } ?>
Anyone knows how to fix this function I wanna put in header?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding link for logged in user?’ is closed to new replies.