A substitute teacher who worked for nearly three decades in Palm Beach County was arrested on child pornography charges, according to authorities.