user-avatar, and I want to show user icon in the post meta data.
I'm writing like this.
<?php the_author_posts_link(); ?>
<?php echo get_avatar(); ?>
It shows only default "nobody" avatar.
If I write like
<?php echo get_avatar("email@example.com"); ?>, then it shows my avatar through
So if I can get the author's emails, it works all fine.
I tried to get the email by
<?php the_author_meta('user_email'); ?>. But it doesn't return the email, but it outputs directly.
I'm stuck now. How can I set user avatar in post meta area?