1

On my home page where all my blog posts are I want to show the avatar of the author and then link it to the members profile so for example: domain.com/members/cameron.

I have managed to get the avatar showing, just need to grab the url: <a title="View profile for <?php echo get_the_author(); ?>" href=""><?php echo get_avatar( get_the_author_meta('user_email'), $size = '32' ); ?></a> Can anyone help? Thanks.

Cameron
  • 27,963
  • 100
  • 281
  • 483

1 Answers1

0

Can you try this?

<a title="View profile for <?php echo get_the_author(); ?>"
   href="/members/<?php echo get_the_author_meta('nickname') ?>">
   <?php echo get_avatar( get_the_author_meta('user_email'), $size = '32' ); ?>
</a>
borayeris
  • 2,603
  • 1
  • 27
  • 31
  • nickname isn't the same as username though. trying user_login does work but it relies on the URL being /members/ which isn't perfect, but works :/ Thanks – Cameron Feb 04 '11 at 14:31