You and your wife were given standard advice, which we also give in my STD clinic. However, there really is no reason you can't have
sexBuccal smear
Causes of sexual dysfunction
Child abuse - sexual
Delayed ejaculation
Erection problems
Female sexual dysfunction
Inhibited sexual desire
Orgasmic dysfunction
Puberty and adolescence
Rape
Safe sex . The advice is intended to cover the chance that one or the other partner might be having
sexBuccal smear
Causes of sexual dysfunction
Child abuse - sexual
Delayed ejaculation
Erection problems
Female sexual dysfunction
Inhibited sexual desire
Orgasmic dysfunction
Puberty and adolescence
Rape
Safe sex with other people - which, you will understand, is a pretty
commonCommon cold situation. Since you and your wife are on treatment, sex together probably is safe. However, I recommend condoms until you complete treatment: if one of you were the rare person whose infection doesn't repond to doxy, the other person might be reinfected. But even this is theoretical; it probably makes no difference either way.
Sex per se (i.e., stimulation, orgasm,) won't harm anything and won't affect how well the doxy works. Neither masturbation nor sex with your wife will harm anything.
You and your wife both should be re-tested for chlamydia in about 3 months. And of course at least one of you is responsible to assure that another or past partner is aware of the situation and gets care for chlamydia. Otherwise, you can put this business behind you.
Best wishes-- HHH, MD
HHH, MD