Support » Fixing WordPress » query author_name

  • Kate


    I’ve followed the author template article in the codex files

    I also checked out this thread:

    I used this 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'));

    All Titles by: <?php echo $curauth->user_firstname; ?><?php echo $curauth->user_lastname; ?>

    The author name still remains blank. Can someone PLEASE tell me how to fix this so the author name appears in the page? I posted a similiar question a couple of days ago, but got NO REPLY.

    I really would appreciate some help on this.

    sincerely thank you

  • The topic ‘query author_name’ is closed to new replies.