A novel design of a tunable terahertz switch and band-pass filter using liquid-crystal-filled photonic crystal waveguide is demonstrated. The effects of magnetic field on the photonic bandgaps and transmitting properties of a THz wave are investigated by using the plane wave expansion method and finite difference time domain method. The efficient photonic bandgap tuning is predicted such that the two-dimensional liquid-crystal-filled photonic crystal waveguide can serve as a switch and continuously tunable band-pass filter with controlling of the magnetic field.