StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-01-2010, 08:28 PM
darune123 darune123 is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jul 2009
Posts: 16
Default Gravatar Email and site link

I found the code below when searching the forums, and it works well. But I need to add a link to the author's email address and website. How do I adjust the following code to add those items?

Quote:
///add author pic and bio

function get_author_bio ($content=''){
global $post;

{

$post_author_name=get_the_author_meta("display_nam e");
$post_author_description=get_the_author_meta("desc ription");
$html="<div class='clearfix' id='about_author'>\n";
$html.="<img width='80' height='80' class='avatar' src='http://www.gravatar.com/avatar.php?gravatar_id=".md5(get_the_author_email( )). "&default=".urlencode($GLOBALS['defaultgravatar'])."&size=80&r=PG' alt='PG'/>\n";
$html.="<div class='author_text'>\n";
$html.="<h4>Author: ".$post_author_name."</h4>\n";
$html.= $post_author_description."\n";
$html.="<div class='clear'></div>\n";
$html.="</div>\n</div>\n";

$content .= $html;
}

return $content;
}
add_filter('the_content', 'get_author_bio');
Thanks
 

Tags
gravatar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Gravatar link! anja49 General Discussion 2 05-01-2010 04:12 AM
Link Gravatar to Author's Page shesgotaplan General Discussion 9 04-29-2009 10:19 PM


All times are GMT -5. The time now is 09:37 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.