The standard electroweak model is extended by means of a second Brout–Englert–Higgs–doublet. The symmetry breaking potential is chosen in such a way that (i) the Lagrangian possesses a custodial symmetry, (ii) a stationary, axially symmetric ansatz of the bosonic fields consistently reduces the Euler–Lagrange equations to a set of differential equations. The potential involves, in particular, a direct interaction between the two doublets. Magnetic, stationary, axially-symmetric solutions of the classical equations are constructed. Some of them can be assimilated to embedded Nielsen–Olesen strings. From these solutions there are bifurcations and new solutions appear which exhibit the characteristics of the recently constructed twisted semilocal strings. A special emphasis is set on "doubly-twisted" solutions for which the two doublets present different time-dependent phase factors. They are regular and have a finite energy which can be lower than the energy of the embedded twisted solution. Electric-type solutions, such that the fields oscillate asymptotically far from the symmetry-axis, are also reported.