The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. katie1
    Posted 10 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)...

    if(get_query_var('author_name')) :
    $curauth = get_userdatabylogin(get_query_var('author_name'));
    else :
    $curauth = get_userdata(get_query_var('author'));

    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
    Posted 10 years ago #

    Can someone help me on this please.

Topic Closed

This topic has been closed to new replies.

About this Topic