Add Author avatar and bio to post WordPress

Did you notice that here in Developer’s Blog you can see the Author avatar and Bio right after the post?

Jexweber asked me on Twitter How did you do that?.

Well this is not a plugin it’s just a few lines of code.

1. Open you single.php file of your theme.

2. Now place the functions (below) inside the Loop.

Look for the post content and put it after it. Then you will be sure is inside the Loop:

3. Add the functions

Get the Author avatar:

Get the Author posts link:

Get the Author Bio:

(please notice the field description must be filled in the author profile page)

What else?

You can style the output with tables, divs and CSS.

Enjoy it 😉

4 Responses to “Add Author avatar and bio to post WordPress”

  1. Jexweber May 5, 2010 at 9:36 am #

    Wow, It’s very easy to do, thanks a lot. I will try implement in my blog.

    • quicoto May 5, 2010 at 9:52 am #

      Once you have it in your blog, post here the URL to see it in action 😉


  2. JMLeon May 5, 2010 at 4:12 pm #

    For multi-author sites this is a very helpful tip, but it is also a great help for SEO, where you can share the PR between your sites.

    • quicoto May 5, 2010 at 4:52 pm #

      Yup. No sense to add this feature to a single user blog 😉

      Thanks for commenting JMLeon.

Leave a Reply

Add <code> Some Code </code> by using this tags.