Hi, does anyone know if it’s possible to add the author’s image (or link to their profile page) to every listing by default?
I see under My Account > My Profile Page it says “My Profile Link: Share your profile link with your friends and family online so they can see your website profile” (which implies this is done manually)?
Are you wanting to display the Gravatar image or something else?
this can be done but would need manual editing, its not default.
Hi Aaron, yes exactly (a gravatar). Have you had any luck (with manual editing)? And Mark, is there any way to add some text as an admin that the author cannot remove? Thanks
You can echo it like this:
<?php echo get_avatar( get_the_author_meta( ‘ID’ ), 32 ); ?>
Aaron, thank you so much! Sorry I neglected to say I’m a newbie, but after checking out that WP article I found the source file it referenced:
get_avatar() is located in wp-includes/pluggable.php
…and on line 1587 where it says: if ( !function_exists( 'get_avatar' ) ) :
if ( !function_exists( 'get_avatar' ) ) :
…but after this I’m over my head(!) May I ask what to do with this line you suggested?
Start your new website today!