Support » Fixing WordPress » Show also users (without entries) on author.php

  • 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;
    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Show also users (without entries) on author.php’ is closed to new replies.