WordPress.org

Ready to get started?Download WordPress

Forums

Show author in posts (4 posts)

  1. rithmus
    Member
    Posted 5 years ago #

    Hi everyone!

    Is there any way to show the author on posts in "minimalism" theme?

    thanks in advance!

  2. MichaelH
    Member
    Posted 5 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>

    So you probably just need to add template tag, the_author(), to your theme's index.php file.

    Also there's a cool little new plugin that displays the avatar for the author:
    http://wordpress.org/extend/plugins/addauthor/

  3. rithmus
    Member
    Posted 5 years ago #

    I will try the plugin! thanks for the answer!

    PS: I want to show only nickname... ;)

  4. MichaelH
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags