WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Author shown on posts (3 posts)

  1. lcmartin
    Member
    Posted 5 years ago #

    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

  2. MichaelH
    Member
    Posted 5 years ago #

    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>
  3. lcmartin
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags