We show the inline selection of transmission or reflection spectrum of one of two fiber Bragg gratings (FBGs) with different Bragg wavelengths by incorporating a polarization-diversity loop without reconfiguring the filter structure. The proposed filtering apparatus consists of a fiber-pigtailed polarization beam splitter, two FBGs, and three quarter-wave plates (QWPs). Without optical switches and couplers, the proposed filter can flexibly choose the transmission or reflection spectrum of each FBG through proper control of the QWPs contained in the filter. The fabricated filter shows an average insertion loss of ∼4.43 dB, average band rejection ratio of ∼17.92 dB, and average side-mode suppression ratio of ∼19.73 dB.