Arrays of face-centred cubic (fcc) CoxPt1-x (0.45 < x < 0.55) nanowires were electrodeposited into thin film nanoporous alumina supported on a Si substrate. The heat treatment under specific conditions was then carried out in order to transform the fcc phase into the face-centred tetragonal or L1(0) ordered phase. The influence of both the phase transition and the temperature on the magnetic properties of CoxPt1-x nanowires has been studied. Coercive fields higher than 1 T (10 kOe) have been obtained at room temperature with ordered nanowires, 80 nm in diameter.