Apple juice! It will soften your poop and help keep you going regularly drink it everyday.
Take a pillow with you to the bathroom and apply pressure to your abdomen. It helps so much.
If you're still on painkillers they often will make you constipated.
Take some stool softener. Even if you don't need them it'll still help.