I tried switching detergents from Country Save to Charlie's, but I still get some stinkies.
How I fixed it initially was to do a bunch of hot washes with no detergent until I didn't see bubbles. I have a front loader, so I also had to add some water in. Then I resorted to bleach. That pretty much fixed it. I used a lot.
But they don't stink anymore...
Now my regular wash routine (in the front loader) is to do a cold rinse/spin cycle except I turn off the "spin" option so that the diapers stay wet. I sometimes do a rinse/spin cycle with the "extra rinse" (and no spin) if the diapers have been sitting a day longer than usual. That adds more water to the washing. I do occasionally use a little bleach, too, mostly on the inserts, to keep the stinkies away.
Good luck! I hope something works for you!