logo Add author’s gravatar in posts (wordpress)

gravatar are displaying in the comment to identify the comment author…but now to indentify the post author we can also use gravatar. For that please use this code into your wordpress blog, simply paste the following code on your main index template and single.php file.

< ?php echo get_avatar( get_the_author_email(), '70' ); ? >

get_the_author_email outputs the post author’s email and the “70” is the size of the avatar image in pixels. It depends on how you use it where you put it in the theme and how you style it.

Thanks,

BK

baca juga :

Category: internet  Tags:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

[+] kaskus emoticons nartzco