whitley became a lawyer and practiced in mount olive, north carolina. there he taught business law classes at mount olive junior college. he became the town's attorney in 1961; that same year, he joined the staff of congressman david n. henderson. in 1976 whitley ran for congress himself and was elected as a democrat to the 95th united states congress.