The MU forums have moved to WordPress.org

What is the PHP code to retrieve a blog user's username? (2 posts)

  1. suleiman
    Member
    Posted 15 years ago #

    I can see in some of my themes the code:

    <?php bloginfo('name'); ?>

    Right now on my template this outputs the site name, and not the username of the blog author. I have tried replacing "name" with "author," "username," "user," etc., all to no avail. Does anyone know what should go into the space "name" presently occupies?

  2. andrea_r
    Moderator
    Posted 15 years ago #

About this Topic

  • Started 15 years ago by suleiman
  • Latest reply from andrea_r