WordPress.org

Ready to get started?Download WordPress

Forums

query author_name (1 post)

  1. katie1
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags