How To Display Author Photo In WordPress

July 8th, 2008 by under Tips

The beauty of WordPress is it allow multiple authors for a site or even a single post. It is a good practice to show the author photo within a post written by him/her. Besides, we can also add a short “about me” description before or after every posts.

Here we go:

Step 1

Create a new directory in at wp-content/images and name it as authors, so it will become like this directory at wp-content/images/authors.

Step 2

Upload a picture which is named the same as your author ID. Don’t know where to get your author ID? DOn’t worry, here is a screenshot. Simply mouseover on the number of posts of the author and check out the browser’s status bar.
author-IDFrom here, the author ID is 1. So, just name your picture as 1.jpg.

Step 3

Copy and paste this code to wherever you wish the photo to be displayed.

<img src="<?php bloginfo('template_directory') ?>/images/authors/<?php the_author_ID()?>.jpg" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" />

Step 4

If you find any problem on displaying the author photo. Firstly, Paste the URL to a browser to check whether the link is correct. For Example: http://www.domain.com/wp-content/images/authors/1.jpg. Secondly, if you can’t access via the link. Recheck the path of the directory. If you get it right. Then should be no problem.

Mini Tips

When you are displaying the autor photo. You may also wish to let the users know a little about the author. Without access to your full about page. You can display a short description about yourself using the following code.


Login to your admin panel. Goto Administration > Profile > Your Profile. There is a about yourself section. Type something about yourself in the Biographical Info input field. Done!

Hope your like this. Cheers!

43 Comments | RSS 2.0 | Trackback Add comment
From old to new:
  1. pictures July 10th, 2008
  2. kailoon July 11th, 2008
  3. joydayKessdrow August 3rd, 2008
  4. Monica October 11th, 2008
  5. Daniel Craig Jallits November 25th, 2008
  6. Alen Sirovica March 2nd, 2009
  7. kailoon March 7th, 2009
  8. Mattis April 6th, 2009
  9. Agung May 23rd, 2009
  10. Eric June 19th, 2009
  11. Steve Marr July 30th, 2009
  12. Steve Marr July 30th, 2009
  13. kailoon August 2nd, 2009
  14. neel October 15th, 2009
  15. Jimmy December 28th, 2009
  16. Insurance Ideas March 2nd, 2010
  17. cvb March 17th, 2010
  18. freemh March 21st, 2010
  19. Josh September 21st, 2010
  20. wparena October 6th, 2010
  21. kuna October 17th, 2010
  22. Thornhill Spa December 25th, 2010
  23. AAROND January 13th, 2011
  24. Rajeev April 24th, 2011
  25. Upesh June 9th, 2011
  26. Kl3riker June 23rd, 2011
  27. kekeke August 20th, 2011
  28. kekeke September 12th, 2011
  29. VINEET RANA September 16th, 2011
  30. Thorsten Biedenkapp September 29th, 2011
  31. sonali October 11th, 2011
  32. Tampa Divorce Lawyer November 18th, 2011
  33. Izrada web stranica December 28th, 2011
  34. Faisal December 30th, 2011
  35. Jessu July 28th, 2012
Nucleo, Customizable Vector Icons