Thermal effects on liquid‐crystalline order in polymers with mesogenic side groups