Anyone know how to do this?
This is what I have:
<div class="gravatar">
<?php echo get_avatar( get_the_author_id(), $size = '96', $default = '<path_to_url>' ); ?>
<br />
<?php the_author_posts_link(); ?>
</div>
But that just displays the authors name under the Gravatar, linked to the author's page.
I need to do this: <a href="url to author's page"><?php echo get_avatar( get_the_author_id(), $size = '96', $default = '<path_to_url>' ); ?></a>
Anyone know how?
I tried: <a href="<?php echo $curauth->user_url; ?>"><?php echo get_avatar( get_the_author_id(), $size = '96', $default = '<path_to_url>' ); ?></a>
but it didn't work (and yes, I have the variable $curauth before the loop, and it's correct and functioning).
Thanks in advance!