WordPress.org

Ready to get started?Download WordPress

Forums

Showing logged in subscribers name (2 posts)

  1. danshaw
    Member
    Posted 6 years ago #

    I want to try and show the following text in my theme:

    Hello [logged in subscriber username]. Logout or Edit Profile

    Can this easily be done, so that nothing shows at all if nobody is logged in?

    Thanks

  2. Adam Brown
    Member
    Posted 6 years ago #

    One-stop shopping for developers:

    http://codex.wordpress.org/Function_Reference

    Look at all the user functions. In particular:

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

    Have fun.

Topic Closed

This topic has been closed to new replies.

About this Topic