When I was raising my children, my friends and I (other young mothers) would ask for and exchange parenting advice. Mostly, that was taken well and appreciated. I sometimes asked for advice from older women in my family, especially my mother or mother-in-law.
Unsolicited advice from anyone was not usually appreciated. I think that young mothers especially are a little insecure in their parenting skills and look upon unsolicited advice as criticism. It's too bad because there is much to be learned from the older generation and more experienced parents.
Oh, yes, it matters a lot if the advice giver is a stranger or has children. I sure did not appreciate a stranger or someone without children telling me that I was doing it wrong!