Viewing 1 replies (of 1 total)
  • The WordPress Default theme has an example of the_author in the wp-content/themes/default/index.php but the code is ‘commented-out’ so it doesn’t execute. So if you wanted to display the author info with the WordPress Default theme you would change the line in wp-content/theme/default/index.php
    from:
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    to
    <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?> </small>

    Note the use of the template tag, the_author_posts_link(), which causes the author’s name to be presented as a link to his/her posts.

    This also demonstrates the template tag, the_time(), which displays the date.

Viewing 1 replies (of 1 total)
  • The topic ‘Name not showing’ is closed to new replies.