The Wide-field Infrared Survey Explorer view of the disc-torus connection in active galactic nuclei