Here's a simplified correlation:

Be Honest and tell the truth no one wants to hear.. And since no one wants to hear the truth, they believe you're just insulting them or taking a shot at them. Thus they ignore you.. and if such people in your life are all around you, they eventually start ignoring you thus leading to you feeling lonely.

Sad fact of life, but true.

But if its about you, I believe you shouldn't change. Be the person you are... and if you have to change, change for the good.