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