Hi QT,
An ingrown or infected hair follicle is not caused by the warts (HPV) or herpes (HSV) viruses. You would have to catch these viruses from someone else who has them. You might try some Polysporin or other antibiotic cream or ointment on the infection, which will probably help. If this doesn't seem to help it in a day or two, you should probably see a doctor about it. Good luck.
TheOneInFour