Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Show Gravatar Icon in the Byline for Author (http://forum.bytesforall.com/showthread.php?t=17360)

MissAlexia Apr 19, 2012 04:57 PM

Show Gravatar Icon in the Byline for Author
 
Hi there,

I want to display the gravatar icon for the author instead of the name in the byline area. If it is possible, can you please answer me and show how to do.

Thanks for your help.

juggledad Apr 19, 2012 06:11 PM

did you try doing a search in the forum?

Jozefs Jun 13, 2012 06:45 AM

The link in that message is broken (error on the comments page); also, the old method e.g.
Code:

<?php echo get_avatar( %author-id%, $size = '54', $default = '' ); ?>
no longer works with 3.7.7.

Jozefs Jun 13, 2012 07:11 AM

You could use something like

Code:

<?php echo get_avatar(get_the_author_meta('ID'), $size = '55', $default = '' ); ?>
in the loop (you'll need to edit index.php and for example place this code just before

Code:

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>


All times are GMT -6. The time now is 09:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.