Support » Fixing WordPress » any thoughs why <?php the_author (‘firstname’) ?> doesn’t work?
11 years, 3 months ago
I have looked through this forum for help and found this http://wordpress.org/support/topic/29901?replies=4
and also looked through the Codex, but I haven’t been able to solve my problem.
I can’t get an author name to display on my blog.
I’m using the default theme. Here’s the code from my index.php file:
<!– by <?php the_author(‘firstname’) ?>
Any thoughts on what else I need to do to get names to display?
Get rid of the HTML comment tags around it:
<!-- by <?php the_author('firstname') ?> -->
by <?php the_author('firstname') ?>
It worked! Thank you!