Mirela gives bang on great advice.
This is the way to do it.
I have 5 dogs and it took me about 1 year to house train one of them (the evil min pin

.) Finally - we got it figured out but we had to be consistant and also followed the same routine without fail.
Keep plugging away and there is an end to this mess.