WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. stereopoly
    Member
    Posted 6 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?

    <?php
    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));
    endif;
    ?>

  2. ally2007
    Member
    Posted 6 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