The MU forums have moved to WordPress.org

Retrieve blog owner's name (13 posts)

  1. Rubyducky
    Member
    Posted 17 years ago #

    Is there a way to retrieve the blog owner's name in a php function or something? I tried looking at the codex and couldn't find anything. In other words, is there a way to get the value of the blog owner's "Display name publicly as" field?

  2. andrea_r
    Moderator
    Posted 17 years ago #

    The search over there is awful.

    http://codex.wordpress.org/Template_Tags/the_author

  3. drmike
    Member
    Posted 17 years ago #

    That's for the post author though.

    Do you want the post author or the actual blog owner's nice name?

  4. suleiman
    Member
    Posted 17 years ago #

    blog owner baby.

  5. drmike
    Member
    Posted 17 years ago #

    Hmm, the other issue would be that a blog can have more than one owner.

    I'm going to have to fiddle with this one as well.

  6. Rubyducky
    Member
    Posted 17 years ago #

    Thanks andrea_r, I looked at that and I was able to use it, but if I could get the actual blog owner's name, that would be great. Thanks everyone :D

  7. dsader
    Member
    Posted 17 years ago #

    the_author('display_name'); always returns the value set in profile.php for my blogs.(I use this in a site-wide footer)

  8. Rubyducky
    Member
    Posted 17 years ago #

    Thanks dsader, it worked well enough for me :)

  9. drmike
    Member
    Posted 17 years ago #

    We probably should come up with a way to list the admins (and other levels?) of the blogs though.

    I marked this thread along with the other two that I promised scripts on and I'll see what I can do with them later today.

  10. mellowbunny
    Member
    Posted 16 years ago #

    Has there been any progress with this? I just want to be able to pull the admin userlist for the blog i'm viewing and display it anywhere within that blog.

  11. lunabyte
    Member
    Posted 16 years ago #

    Query the database. Simple as that.

  12. drmiketemp
    Member
    Posted 16 years ago #

    I no longer release my code publicly. You may want to review how the admins are displayed on the wp-admin/users.php page as wpmu is already doing this. You just have to modify the code yourself.

  13. mellowbunny
    Member
    Posted 16 years ago #

    Thanks for the info and tip!

About this Topic

  • Started 17 years ago by Rubyducky
  • Latest reply from mellowbunny