Well... first, stop doing exercises that cause pain.
The most simplistic fix to wrist pain is to make sure that on your presses that the bar is straight over your forearms. Make sure your wrists aren't bent way back and that the bar is set on your palms so your wrists aren't supporting the weight rather than your forearms.
If this doesn't fix it over the matter of a few weeks, consult a professional.