User name in sidebar
-
Hello
I found this script in another post and it is sort of what I’ve been looking for. It basically shows the user’s name in the header when logged in:
<?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); echo 'You are logged in as: ' . $current_user->user_login; } else { echo 'you are not logged on'; }; ?>I was wondering if there is something similar for the sidebar (even a widget)?. I would only need the user’s name (and the “You are logged in as:” bit)?
Thanks for your help!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘User name in sidebar’ is closed to new replies.