The magnetic field generated by transverse plasmons in three-component electron-positron-ion plasma is investigated based on a kinetic model. Nonlinear coupling equations, self-consistently describing the nonlinear behavior of high-frequency transverse plasmons, low-frequency density perturbation, and quasistatic self-generated magnetic fields, are derived considering the nonlinear wave-wave and wave-particle interactions. The governing equations can be easily reduced to the ones obtained in conventional electron-ion and electron-positron plasmas. There will be no spontaneous magnetic field in the pure electron-positron plasma due to the same mass of the electron and the positron. It is shown that the self-generated magnetic field is relevant to the mass difference of plasma particles, which is modulationally unstable. The increase in the amplitude of the pump wave field or the decrease in the ion concentration will lead to a faster growth of the self-generated magnetic field and higher intermittent magnetic flux.