Forums

[resolved] How to show the author (4 posts)

  1. millemoeller
    Member
    Posted 3 years ago #

    Maybe this is a stupid question.

    But I cant figure out how to make the author of a post show on the webside..?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    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() ?> </small>

    See the template tag, the_author().

  3. Venomleon
    Member
    Posted 3 years ago #

    Thanks, that helped! :D

  4. millemoeller
    Member
    Posted 3 years ago #

    I hope you can help me with this as well..

    How do I make the author appear when I read a single post? Right now it doesnt appear when you "push the link" of a post..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags