How to display avatar in comments.php and single.php?
-
I have enabled avatar in Settings > Discussion. But the avatar won’t show up at all, both in comment and in post. Only the default avatar (Mystery Man) showed up.
I’ve tried those lines:
<?php echo get_avatar( $id_or_email, $size = '96' ); ?>
<?php echo get_avatar( $comment, 32 ); ?>
<?php echo get_avatar( $id_or_email, $size, $default, $alt ); ?>
But none of those work. Oddly, the avatar shows up properly in Twenty Ten theme, but not in other themes. Any help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to display avatar in comments.php and single.php?’ is closed to new replies.