A series of 3D lanthanide coordination polymers decorated with a rigid 3,5-pyridinedicarboxylic acid linker: syntheses, structural diversity, DFT study, Hirshfeld surface analysis, luminescence and magnetic properties.