Sex after c-section

How long do you have to wait to have sex? How long did you guys wait?

Was sex painful? I had a vaginal delivery for my first, I’m wondering if sex is going to be different with a c-section.