How to ensure breastfeeding will work out this time

When I gave birth to my son they only put him on me for a few seconds and took him away to get cleaned up and suctioned. He had the cord wrapped around his neck and. I had to get stitched up because I teared. He didn’t seem interested in latching so I had to pump. We were in the hospital for 4 days so everyone tried to help. I hope the cause wasn’t him not latching immediately after. I want to breastfeed when I have baby #2.

*he latched a few times and I kept on trying throughout the months but he just didn’t want it*