StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Display Author Gravatar in Post (http://www.studiopress.com/support/showthread.php?t=120200)

devplus 10-09-2012 02:29 AM

Display Author Gravatar in Post
 
Hi,

How do I show author gravatar on the post (for example besides the post title or post info) ?

I know I can use the code below inside the loop:

HTML Code:

<?php echo get_avatar( get_the_author_email(), '80' ); ?>
I'm using the default blog template. So, what is the genesis way of doing this since there are no single.php or index.php?




Btw, I already know how to output the author gravatar using the featured post widget.

andrea_r 10-09-2012 06:21 AM

Use a hook within the loop area, like genesis_after_title.


http://www.studiopress.com/tutorials/hooks
http://www.studiopress.com/tutorials/hook-reference
http://genesistutorials.com/visual-hook-guide


All times are GMT -5. The time now is 08:09 PM.

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