[resolved] wp-admin welcome on home page of blog? (3 posts)

  1. maestro42
    Posted 9 years ago #

    You know when you login to the admin panel is says :
    Howdy, NAME [Sign Out, My Account]

    I wanted to put this on the homepage so that if a person is always signed in it will give them a welcome message when they visit the homepage. However, if nobody is signed in i dont want it to display anything. Just posting the code from admin-header.php gave me the segment, except the NAME wasn't showing up.

    Anyone know how to 1) make the name show up & 2) make it totally disappear if nobody is logged in?

    Thanks any help is greatly appreciated.

  2. http://codex.wordpress.org/Function_Reference/get_currentuserinfo

    if ($user_ID) {
    echo "Welcome to my blog, $user_identity!";

  3. maestro42
    Posted 9 years ago #

    thank you this is exactly what i was looking for!!


Topic Closed

This topic has been closed to new replies.

About this Topic