<a class="member" href="<?php the_permalink(); ?>">
  <?php echo get_acf_image_with_alt( 'serious_photo', get_the_ID(), 'team-member', false, 'serious-photo' ); ?>
  <?php echo get_acf_image_with_alt( 'funny_photo', get_the_ID(), 'team-member', false, 'funny-photo' ); ?>
  <p class="name"><?php the_title(); ?></p>
  <p class="title"><?php the_field( 'team_page_title' ); ?></p>
</a>