Support » Theme: Customizr » Show Author Avatar in PostsI

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ultimate Peter

    (@peastvoldqbservicesnet)

    ditto

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Author Avatar in PostsI’ is closed to new replies.