WordPress.org

Support

Support » How-To and Troubleshooting » query author_name

query author_name

  • I’ve followed the author template article in the codex files http://codex.wordpress.org/Author_Templates

    I also checked out this thread: http://wordpress.org/support/topic/27554

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

    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.
Skip to toolbar