Support » Theme: Customizr » Show Author Avatar in PostsI
2 years, 9 months ago
How do I show the author’s avatar in posts for customizr?
The function you’re after is get_avatar. Depending on where you want it to show up, you should add something like this:
<?php echo get_avatar( get_the_author_meta('ID'), $size = '50'); ?>
to the output of some element in your post template, where 50 is the size of the avatar image in pixels (feel free to change it).
Normally you should add this using an action hook in functions.php of your child theme, not by modding your post template. This way your modification will not be affected by future theme updates.