Support » Fixing WordPress » Author page with no posts – show author name

  • shadez


    like the title states, i wish to display the ‘name’ of the author even there are no posts by him/her.
    but ‘get_the_author()’ doesnt return the string and i cant figure out any other method.

    the code here doesnt work for me as suggested by WP:

    my author.php file is quite simple and contains this:

    <?php if ( have_posts() ) the_post(); ?>
    <div id="content" role="main">
        <h1 class="page-title">
        <?php get_the_author(); ?>
        <?php rewind_posts();
        get_template_part( 'loop', 'author' ); ?>

    would appreciate any help here…

  • The topic ‘Author page with no posts – show author name’ is closed to new replies.