Support » Themes and Templates » Author shown on posts

  • Resolved lcmartin

    (@lcmartin)


    This is a great template and I’ve happily implimented it on my site.
    Would it be difficult to make the posts also list the author? I get the feeling that to do this I’d need to medle with CSS?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use the template tag, the_author(), to display the author name in a loop (aka display of your posts).

    If you were using the WordPress Default theme, you would have to edit the wp-content/themes/default/index.php file and change this line from this:
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    to this (effectively uncomment the code):

    <small><?php the_time('F jS, Y') ?> by <?php the_author() ?> </small>

    Thanks Michael. That’s what I’ll do — not so hard after all! Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author shown on posts’ is closed to new replies.