The Church teaches, quite simply, that sex is a gift to be used only in the bonds of marriage. A priest is not married, therefore he should not be having sexual relations with anyone. Whether he would like to do it with men or women is beside the point. Sexual activity outside of marriage is strictly verboten.
SD