I am told that homosexuals will not enter heaven even though they may be very religious otherwise. Is this true?
The way you have put your question is very strange indeed. How can a homosexual be religious when his practice flies in the face of all religious moral values? You know that adultery is a grave sin. Let me tell you that homosexuality is even worse. God has condemned the community known as Lot’s people who were the first to practice homosexuality. He overturned their land when He decided to smite them for their sins so that they would be an example for future communities, warning them against transgressing the limits God has set for morality and conduct.
Yet when a homosexual genuinely repents and mends his ways, when he resolves not to go back to his evil practice and makes that resolve a reality, God may well forgive him. We are not the ones to say whom God will forgive and whom He will not. That is His own prerogative.