Haven't had a normal bowel movement for months and now have yeast infection and taking antifungal medication?

Yeast infection. These two entities are probably unrelated. If you have another question it is not clear from your input. Rephrase if necessary.