What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on the fasting of a woman who has reached menopause if menstrual blood flows?
If a woman reaches the age of menopause (which is usually sixty-two) and her menses have ceased, then she sees blood after that, and its duration is not less than a day and a night (24 hours), it is menstruation (hayd). If it is less than a day and a night, she is considered as having non-menstrual vaginal bleeding (mustahada), so she fasts and prays. However, she must perform ablution for every obligatory prayer after its time enters, pray immediately, and be treated as a person with a continuous condition. There is no specific end limit for a woman's menstruation; it is possible as long as the woman is alive. And Allah the Almighty knows best.