Been there - not with kids, but definitely similar behaviour, back in my early 30s too, when I'd been dumped by someone I really thought was the love of my life. And, do you know, I am actually quite glad now that I - belatedly - got that shagging-around out of my system. Bits of it were quite self-destructive, but I seriously don't think that a phase of being a slapper is the end of the world. But I also know, very well, that feeling of wanting attention/sex/a cuddle...
for what it's worth, I'd say...
If it is hurting you, stop (or stop as much as you can). If you can separate the different things you want (I'm not very good at this, I have to say, but I have one - utterly beautiful - mate who has at times been able to do this!) - ie sex/attention/affection, and you can get them from different people, I personally don't think that it's necessarily the wrong thing to do. Whatever you do, do TRY not to get into deeply horrible setups with blokes you like, who don't want a relationship but are quite happy to go on hurting you.
And I should add that several years, another heartbreak and one bout of clinical depression later, at a point when I'd really given up on functioning relationships, kids, etc, I very suddenly took up with a lovely man, got pregnant almost instantly, have beautiful two-year-old and am now expecting second baby next month!
Thinking of you, honey.