WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tckrockz
    Member
    Posted 3 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. alchymyth
    Forum Moderator
    Posted 3 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
    Member
    Posted 3 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. alchymyth
    Forum Moderator
    Posted 3 years ago #

    http://codex.wordpress.org/Function_Reference/get_avatar

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

    I think this plugin is the same. It calls up the get avatar function.
    http://wordpress.org/extend/plugins/author-avatars/

    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

Tags

No tags yet.