WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] call author profile & name outside the Loop (2 posts)

  1. katie1
    Member
    Posted 8 years ago #

    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>

  2. katie1
    Member
    Posted 8 years ago #

    Can someone help me on this please.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags