WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Easy Author Image

Adds an author image uploader to your profile page. Upload an author image right from your profile page with the click of a button.

How exactly do I get started?

  • Go to Users->Your Profile.
  • Find the new Profile Picture section.
  • Click on the button that says "Upload New Author Profile Image"
  • Use the media uploader to either Upload a new picture, Link to a URL of a picture, or select an image from your Media Gallery.
  • Click on the picture you want to use and then click on the button at the bottom of the media uploader that says "Make this my author profile picture!"
  • IMPORTANT: You MUST save the changes by clicking the Update Profile button at the bottom of Your Profile. If you don't update your profile your author image will not be uploaded/changed.

I selected an author image but I don't see it in the preview. What happened?

You forgot to save your profile after you uploaded the picture. Go back and reupload or reselect your author image and then once you click on the Make This My Author Profile Picture button, click on the blue Update Profile button at the bottom of your profile page.

How do I display an author's image?

Easy Author Image comes with a function that will return the url of the author's image. The function is called get_author_image_url().

If you want to display the author image in the loop, do something like this:

$avatar = get_author_image_url(); // The function uses get_the_ID() to grab the appropirate user ID for the author image.
$name = get_the_author_meta('display_name');
$html = '<img src="$avatar" alt="A Picture of $name"/>';
echo $html;

If you want to display the author image somewhere not in the loop, do something like this:

$avatar = get_author_image_url('123'); // Replace 123 with the id of the author you want to use
$name = get_the_author_meta('display_name');
$html = '<img src="$avatar" alt="A Picture of $name"/>';
echo $html;

Since Easy Author Image adds a new custom field to the user profile, you can also use WordPress's internal functionality to retrieve the author image url as well:

$url = get_the_author_meta('author_profile_picture', $user_id);

Does it matter what size the image is?

This plugin only deals with uploading and retrieving the image. It's up to you to format it appropriately to your theme.

I get it. So the get_author_image_url() function is basically just a pre-formatted call to get_the_author_meta('author_profile_picture', $user_id), right?

Correct!

I have a multi-author blog and some people want to continue using their Gravatars. What should I do?

Nothing! Easy Author Image automagically defaults back to the Gravatar associated with the user's email address if no profile picture is uploaded.

Requires: 3.0.1 or higher
Compatible up to: 3.4.2
Last Updated: 2014-3-24
Downloads: 12,167

Ratings

3 stars
3.9 out of 5 stars

Support

2 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,2,2 100,1,1
0,1,0
100,1,1 100,2,2
100,1,1 50,2,1
100,2,2