When a candle burns, why does the top of wick glow if bottom of flame is hottest?
The wick temperature does not have to be the same as the flame temperature.The flame is hottest at the bottom, but the wick is hottest at the top. 

For a candle, the wick burning isn't the intended purpose of the wick; light comes from burning wax (more generally: fuel), you want to burn the wax not the wick. Rather the purpose of a wick is to help fuel evaporate by soaking up wax and allowing the radiant energy from the flame to heat the wax causing it to evaporate and burn also.

As wax travels up the wick, it evaporates and less wax is in the wick the further up you go. Eventually the wax dries up and the radiant energy is heating a wick without any wax. Eventually the wick gets so hot at the tip, that it will glow due to black-body radiation.

In summary: though the blue is the hottest part of the flame, the wick can evaporate wax to cool towards the bottom. There is no wax at the top and thus as the radiant energy of the flame causes it to get hotter until it starts to glow.

Extra: I will note that the top of the wick does not burn when lit as the gas around the wick has too little oxygen to burn (unless the wick slumps out side the flame). When you blow out the candle the low oxygen environment of a flame is gone and thus the hot wick will smoulder.