Display the uploaded avatar
Author | Posts |
---|---|
June 9, 2013 at 5:54 pm 4705 | |
Joakim-sb | Hello, Thanks for a great plugin. I have a question about avatars in this plugin. I have a registration form so that users can edit their profile, which works fine. In this form I'm using the avatar profile field so that the user can upload an avatar. But how do I display the uploaded avatar? I know that Wordpress uses gravatars by default when I use get_avatar(), but i don't want to display gravatars, I want to display the uploaded avatar. Is this possible? How does this avatar upload actually work? Help would be much appreciated. |
June 9, 2013 at 8:21 pm 4714 | |
Tareq Hasan | Hi, WP User Frontend uses the same |
June 9, 2013 at 8:38 pm 4716 | |
Joakim-sb | Hi Tareq, Thanks for answering. That’s the problem, I am using the get_avatar() function in my author.php file, but it won’t display the uploaded image. Instead it displays a gravatar, or the “mystery man” image which you can select in the admin dashboard. However, up in the admin bar where it says “Howdy, …”, my uploaded image is actually displayed. Why is it not working in my author.php file? Have I missed something perhaps? Do I need to add something in the function, like an ID or something else? |
June 9, 2013 at 8:53 pm 4718 | |
Tareq Hasan | As the |
June 9, 2013 at 9:16 pm 4719 | |
Joakim-sb | Hi again Tareq, I managed to fix it, simply by putting the user id inside the get_avatar() function, like this; Thanks for helping! |