Add Author Avatar Before Single Post Entry Titles

In this tutorial, i’ll give you the PHP code which you can simply paste into your child themes functions file to display the post authors Gravatar before the entry title on the left.

avatar before title

Here’s the question this post answers from the forums:

How do I add an author image in the title area?

Related Code Snippets

2 responses to “Add Author Avatar Before Single Post Entry Titles”

  1. Hi

    This is great , but I would also like this to appear in the blog roll and the archives. Please can you provide the code for that.

    Many Thanks

    Nick

    1. Brad Dalton Avatar
      Brad Dalton

      Hi Nick

      Try the 3rd method in this tutorial and remove the conditional check. http://wpsites.net/web-design/link-author-avatar-to-archive/

      Remove this:

      [code]
      if ( ! is_front_page() )
      return;
      [/code]

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.