Show also users (without entries) on author.php (2 posts)

  1. stereopoly
    Posted 8 years ago #

    Hey guys,
    I'm quite fine with creating an author.php but my main problem is now to make this work also for "only users" thus people who've never ever written an article but are registered users. is it this piece of php to edit? i'm not that pro in editing php. can any one help please?

    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name); // NOTE: 2.0 bug requires get_userdatabylogin(get_the_author_login());
    else :
    $curauth = get_userdata(intval($author));

  2. ally2007
    Posted 8 years ago #

    I think this page has the info you need: http://codex.wordpress.org/Author_Templates

    You need this:

    'hide_empty' => true

    But set to false... 0.

Topic Closed

This topic has been closed to new replies.

About this Topic