Support » Fixing WordPress » Author page with no posts – show author name
4 years, 2 months ago
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">
<?php get_the_author(); ?>
get_template_part( 'loop', 'author' ); ?>
would appreciate any help here…