The law of attraction isn't just about getting what you want, when you want it. It's bigger than that. It's difficult for me to put this into words, so bear with me while I try and explain.
Now, you are trying to attract love but you are getting the opposite effect. This tells me (and the Universe is telling you) that you are not ready for the real thing. Atleast not yet. You still have more work to do on yourself. Which means you probably need to clear out all of the negativity floating around inside before you can make room for anything positive to be let in.
You think you aren't getting what you want, but the reality of it is that you are getting exactly what you need at that time. You have to look at these failed relationships as lessons. Take a step back and objectively look at the situation. What did you learn about yourself through this experience? What can you improve on in the future? Take responsibility for yourself and the part you played in all of it. And you need to be honest with yourself when you do this or it won't work and you will fall into the same pattern over and over again.
Once it clicks and you start to make those positive changes within, everything will gradually start to fall into place. And before you know it, you will realize that the law of attraction was most definitely working for you the whole time. It was just your ego that was preventing you from seeing the bigger picture.
I hope this kind of makes sense. Like I said, it was difficult for me to put into words.