I Corinthians 13 is known in most Christian circles as "The Love Chapter". There is no reason to think that Paul suddenly changes the subject. Paul speaks of LOVE in the first 7 verses. Then he says:
8 Love never ends; as for prophecies, they will pass away; as for tongues, they will cease; as for knowledge, it will pass away.
Still speaking of LOVE, Paul says that it never ends, while prophecies, tongues, and the gift of knowledge will pass away. Let's see WHEN these will pass away!
9 For our knowledge is imperfect and our prophecy is imperfect;
The gift of knowledge is imperfect (incomplete) since it allows us to know a person only partially
The gift of prophecy will sometimes reveal things about a person, but the revealed matters are incomplete. Neither the gift of prophecy nor the gift of knowledge ever reveals everything about a person.[/b]
10 ... but when the perfect comes, the imperfect will pass away.
What is the perfect thing that is going to come? None other than perfect LOVE, the theme of the whole chapter. When that comes, the imperfect gifts such as tongues, prophecy, and the gift of knowledge will pass away. For they will no longer be needed.
11 When I was a child, I spoke like a child, I thought like a child, I reasoned like a child; when I became a man, I gave up childish ways.
Paul thinks of knowledge and prophecy with their partial revelation of other people as being immature, just as he was immature as a child with childish ways. But when he became a man, he gave up childish ways, and then attained to mature modes of behaviour. So will it be when we attain to perfect LOVE.
12 For now we see in a mirror dimly, but then face to face.
At the present time (without perfect LOVE), we see other people only dimly as in a mirror (the mirrors of those times did not produce a good image as today's mirrors). We see others only partially. The gifts of tongues, prophecy, and knowledge may help us to know them more deeply, but never completely.
Now I know in part; then I shall understand fully, even as I have been fully understood.
At the present time without perfect LOVE, I know other people only partially, but when perfect LOVE comes, I shall understand other people fully, even as I have been understood fully by God.
13 So faith, hope, love abide, these three; but the greatest of these is love.
Yes, Paul is talking about LOVE from the beginning of the chapter to the end.