How do I display author photos on

Nicholas Barry October 17, 2011

I host a site ( Anyone can register as an author, and I want authors to be able to upload an image of themselves that will display next to their posts and comments. Any plug-ins you can recommend that will allow this?

  1. Jamie VanRaalte
    June 26, 2012 at 5:03 am

    I am confused... does not host your website. Who are you hosted with? Typically, I find gravatar is the best option because it's a 3rd party site that handles all of this for you.

  2. James Bruce
    November 2, 2011 at 9:48 am

    Barry, by default WordPress uses Gravatars to display images of people in comments. So long as your authors have set one at and are using the same email address on your site, it will show. 

    Unfortunately, adding the author gravatar to your theme will need a little more work, and involves some editing of files. Dpeending on where you want them displayed, you need to add the following line into either your index.php or single.php file:

    echo get_avatar(get_the_author_meta('ID'));

    You can customize the size etc, but needs a bit more work. Refer to the wordpress codex here:

    • James Bruce
      November 2, 2011 at 9:49 am

      Also, I cant post this due to restrictions on comments, but you need to surround that code in php tags, like at the end (Also without the spaces)

  3. Nicholas Barry
    October 24, 2011 at 2:41 pm

    Thanks! Unfortunately, it looks like it's not compatible with the latest version of WordPress...

  4. Jay
    October 17, 2011 at 11:52 pm

    You can upload an image anywhere in your article.
    and for the comments, you have 4 options, 3 of them will have option with pictures except anonymous.
    commenting with wordpress, twitter and facebook will automatically display pictures with comments.

    you can also use

    If the blog belongs to only one author, it will be much easier to upload images anywhere, outside the post.