Ready to get started?Download WordPress


Displaying a nickname with a template tag (5 posts)

  1. molinik
    Posted 6 years ago #

    Probably a very simple answer to this question.... I am trying to set up a line in the header of the public portion of my WP page that basically says the same thing as it does in the backend:

    "Howdy, Tom Jones [Logout, Edit Profile]"

    I copied the code directly over into the header, but that did not work properly as it would not show the user's nickname. Looking at template tags, I see the <?php wp_loginout(); ?> tag to handle login and logout, but while I see template tags for authors, categories, and posts, I don't see anything to just display the information of the current user. How do I do this, or where can I look to find out? Thanks!

  2. molinik
    Posted 6 years ago #

    Maybe I can ask this a different way....

    Is there a template tag that addresses the current user in particular? If not, how would you reference the user's profile information?

  3. molinik
    Posted 6 years ago #


  4. artsakh
    Posted 6 years ago #

    I'd like to implement this feature into my site.
    Anybody ...?...

  5. MichaelH
    Posted 6 years ago #

    Might look at Author_Templates for some in depth discussion of this subject. And check the 'Further Reading' in that article.

    Also see:
    Author Template Tags

Topic Closed

This topic has been closed to new replies.

About this Topic