The MU forums have moved to WordPress.org

blog's username (5 posts)

  1. bschwarting
    Member
    Posted 16 years ago #

    This tag, when you are on a subdomain blog, shows the blog title. What variable will display the username?

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

  2. bschwarting
    Member
    Posted 16 years ago #

    found it!

    global $user_login;
    echo $user_login;

  3. bschwarting
    Member
    Posted 16 years ago #

    oops, that won't work, that's the logged in user, i need the blog owner's username.

  4. bschwarting
    Member
    Posted 16 years ago #

    if i have the blog_id, how can i trace that back to a blog owner username?

    global $blog_id;
    echo $blog_id;

  5. bschwarting
    Member
    Posted 16 years ago #

    Doh! looks like the discussion is going on here already.

    http://mu.wordpress.org/forums/topic.php?id=7476&page&replies=12#post-44469

About this Topic

  • Started 16 years ago by bschwarting
  • Latest reply from bschwarting