WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] any thoughs why <?php the_author ('firstname') ?> doesn't work? (3 posts)

  1. kmort
    Member
    Posted 8 years ago #

    Hi.

    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?

    Thanks!

  2. Kafkaesqui

    Posted 8 years ago #

    Get rid of the HTML comment tags around it:

    <!-- by <?php the_author('firstname') ?> -->

    should be:

    by <?php the_author('firstname') ?>

  3. kmort
    Member
    Posted 8 years ago #

    It worked! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags