The ground state of dense QCD matter in strong magnetic fields was recently found to involve an inhomogeneous phase consisting of a periodic array of topological solitons, the so-called chiral soliton lattice. We continue this work by seeking an analogous phase for the case of QCD-like theories such as the two-color QCD, where the appearance of an inhomogeneous phase could be evidenced by lattice simulations. The analytic approach of low-energy effective field theory is used, hence, as a first step the gauged Wess-Zumino term inducing a coupling of the Goldstone bosons to the electromagnetic field has to be found. The well-known shape of the WZ term relevant for the QCD symmetry breaking pattern was generalized in order to be applicable also to the QCD-like theories.