A Greensboro police officer was shot Friday afternoon while conducting a traffic stop in a residential neighborhood.