How To: Add Gravatars to Author Pages
Recently, I wanted to make the Author page (author.php) a little more robust by replacing the static image with Wordpress Gravatars (Global avatars - http://www.gravatar.com - which are assigned to your Wordpress email address). This gives individual authors the ability to change their pictures independently without uploading any files to the server.
I also added a few conditional tags to display contact information if provided in the "Your Profile" section of Wordpress. If an author enters their website, email address, or Twitter ID, it will automatically be displayed on their profile. I have hijacked the "Yahoo Instant Messenger" field in the profile section for entering your Twitter username so keep that in mind.
Please note that these changes require Wordpress 2.8 because I used the new author meta template: http://codex.wordpress.org/Template_Tag ... uthor_meta
This code starts at approximately line 7 in author.php.
Re: How To: Add Gravatars to Author Pages
|All times are GMT -5. The time now is 07:28 PM.|
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.