A novel supramolecular ternary polymer with two orthogonal host-guest interactions.