by oral sex. Warts might appear a few weeks after sex with an infected person, or they might take months to appear. But whether you can see the warts or not, the virus that causes them might be active. A person can be infected and pass on the virus without knowing it.
[from “Some Questions and Answers About Genital Warts”]