How does a circular loop carrying current behave as a magnet?

If the current round in the face of the coil is in anti-cloclcwise direction, then this behaves like a North pole whereas, when it is viewed from other side, then current round in it is in clockwise direction necessarily forming South pole of magnet.

Hence, current loop have both magnetic poles and therefore, behaves like a magnetic dipole.