get avatart user id wordpress code example Example: get user avatar wordpress <?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?>