• Resolved theApe

    (@theape)


    Does anyone know how to override the default usermeta data that is used when displaying a public side of a blog.

    For example so I can have the default admin then a second administration account, but the second account is used when a PHP call like <?php the_author_firstname(); ?> is triggered. So instead of the blog looking for all it’s information in the ID 1 account it looks in ID 2 by default.

    Does this make any sense?

    There will be a main user of the blog, but also an invisible super admin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter theApe

    (@theape)

    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>

    Does anyone know how to manually set the author using the above code?

    Thread Starter theApe

    (@theape)

    OK there’s this for getting something like an email address and so on.

    <?php $curauth = get_userdata(intval(2));
    echo $curauth->user_email;
    ?>

    Doe anyone know how to call yim and aim from the profile?

    Thread Starter theApe

    (@theape)

    Resolved…

    http://codex.wordpress.org/Author_Templates

    I was using old $curauth calls

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Author meta data’ is closed to new replies.