Support » Fixing WordPress » call author profile & name outside the Loop

  • Resolved Kate

    (@katie1)


    Can someone please advise if this post thread http://wordpress.org/support/topic/27554 was been resolved or amended?

    I’ve followed the author template article in the codex files http://codex.wordpress.org/Author_Templates but the author names remains blank.

    I’ve used it before the Loop, as directed to no avail. Has this been fixed or have I missed something entirely?

    Only 1.5 code (used before the Loop)…

    <?php
    if(get_query_var('author_name')) :
    $curauth = get_userdatabylogin(get_query_var('author_name'));
    else :
    $curauth = get_userdata(get_query_var('author'));
    endif;
    ?>

    with the call code before the Loop…

    <h3>You’re currently viewing <?php echo $curauth->user_firstname; ?> <?php echo $curauth->user_lastname; ?>‘s page of posts:</h3>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘call author profile & name outside the Loop’ is closed to new replies.