For the propagation of the transverse wave, the modulus rigidity of the medium is responsible and for the propagation of the longitudinal wave, the bulk modulus of elasticity is responsible. A sold has both moduli of rigidity and bulk modulus but liquids only have bulk modulus. Hence only longitudinal waves can propagate in the liquids.