Author information below the title of the post? (5 posts)

  1. tckrockz
    Posted 5 years ago #

    Is it possible to display the information of the author of the post below the title of it? And maybe his/her avatar as well?
    Something like IP Content System.IP content system.

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    for instance, look into Twenty Ten single.php:

    this is the part that would show author info: http://wordpress.pastebin.com/T0TkYtfe

  3. tckrockz
    Posted 5 years ago #

    That is kind of how I want it. Is there a way to display authors avatar in the post? Next to his name?

  4. Michael
    Forum Moderator
    Posted 5 years ago #


    there is a line of code in the twenty ten code (below: adapted to be independent of twenty ten) which you could use:

    <div id="author-avatar">
                                                            <?php echo get_avatar( get_the_author_meta( 'user_email' ), 60); ?>
                                                    </div><!-- #author-avatar -->

    (you could probably use it without the surrounding div)

    you just need to edit the template where you want the avatar beside the author name in the post.

  5. tckrockz
    Posted 5 years ago #

    I think this plugin is the same. It calls up the get avatar function.

    But I cant seem to figure out how to add this to the single.php template. I need the html for it right?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.