WordPress.org

Ready to get started?Download WordPress

Forums

Author Page - Not Working - Cache Problem ? (2 posts)

  1. sadish
    Member
    Posted 8 years ago #

    I have an author template that tries to display the author's first name and lastname and the profile text.

    <?php
    if(get_query_var('author_name')) :
    $curauth = get_userdatabylogin(get_query_var('author_name'));
    else :
    $curauth = get_userdata(get_query_var('author'));
    endif;

    echo $curauth->first_name. ' ' . $curauth->last_name ;?>

    ?>

    This code fails to get the firstname and the lastname.
    I do not know why.
    I am running WP 2.0.1

  2. Kafkaesqui

    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags