How to get rid of ingrown hairs?!

Everytime I shave I get ingrown hairs and I have tried using a different razor with 2-4 blades and shaving cream but nothing works. Its annoying to deal with