Description
WordPress currently only allows you to use custom avatars that are uploaded through Gravatar. Dew User Profile Picture enables you to use any photo uploaded into your Media Library as an avatar. This means you use the same uploader and library as your posts. No extra folders or image editing functions are necessary.- Version: 1.0.1
- WordPress Version: 4.9 or higher
- Tested up to: 5.2.3
- PHP Version: 5.2.4 or higher
Installation
Just head to your WordPress dashboard, click on Plugin->Add New and search for User Profile Picture. Click install, and then activate.
OR
Download plugin (Click Here), click on Plugin->Add New->Upload. Click install, and then activate.
Setting a New Profile Picture
Simply head to your profile or your user’s and find the section for Profile Image.
Click the upload and it’ll launch a modal where you can select an image for inclusion.
Displaying the Profile Picture
Use the Template Function
There’s a built-in template function that will retrieve and display the profile image. It accepts the same arguments as get_the_post_thumbnail. Here’s an example of it in use.
<?php /** * dew_profile_img * * Adds a profile image * * @param $user_id INT - The user ID for the user to retrieve the image for * @param $args mixed size - string || array (see get_the_post_thumbnail) attr - string || array (see get_the_post_thumbnail) echo - bool (true or false) - whether to echo the image or return it */ //Assuming $post is in scope if ( function_exists ( 'dew_profile_img' ) ) { $author_id = $post ->post_author; dew_profile_img ( $author_id , array ( 'size' => 'thumbnail' , 'attr' => array ( 'alt' => 'Alternative Text' ), 'echo' => true, ) ); } |
User Profile Picture Plugin also lets you:
- Upload your own Default Avatar in your User Profile Picture settings.
- Show the user’s Gravatar avatar or Default Avatar if the user doesn’t have a User Profile Picture.
- Disable Gravatar avatars and use only local avatars.
- Allow Contributors and Subscribers to upload their own avatars.
- Limit upload file size and image dimensions for Contributors and Subscribers.
Awesome post! Keep up the great work! 🙂
Great content! Super high-quality! Keep it up! 🙂
Wow, gorgeous website. Thnx …
I have been checking out many of your posts and i can claim pretty nice stuff. I will definitely bookmark your blog. Maryann Jarret Ede
thank you.
thank you bro.
royal thank.
When I followed your cycle of sleep and how it began with good intentions from 12:00 to 1:00 and then 2:45, I looked at the clock and behold: 2:45 it is! Avrit Tyler Sofko
Ahaa, its fastidious conversation regarding this post here at this webpage, I have read all that, so at this time me also commenting here. Myrna Waylin Conrad
Wow! This could be one particular of the most beneficial blogs We have ever arrive across on this subject. Nathalie Oby Taveda
Wow, wonderful weblog format! How long have you been running a blog for? Ashleigh Bron Georgine
I’ve been absent for a while, but now I remember why I used to love this blog. Thank you, I’ll try and check back more often. How frequently you update your site?
You have made some good points there. I checked on the net to find out more about the issue and found most people will go along with your views on this web site. Candice Karlis Rentsch
Having read this I thought it was rather informative. I appreciate you taking the time and effort to put this short article together. I once again find myself personally spending a significant amount of time both reading and posting comments. But so what, it was still worth it! Violante Kennie Vina
I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this increase. Flss Orin Elata
Excellent, what a weblog it is! This weblog gives helpful data to us, keep it up.
Spot on with this write-up, I honestly believe that this
website needs a great deal more attention. I’ll
probably be back again to see more, thanks for the info!