Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
Is washing both openings (Istinjaa`) a must before every ablution?
Washing the front and back openings (Istinjaa`) is a must in case they have an impurity, but if they do not, there is no need for that, and Istinjaa` is not a condition for the validity of ablution.
After a month and a half from the end of postpartum bleeding, my wife occasionally finds a small amount of blood, and she is breastfeeding. What is this blood, and should she fast and pray when she experiences it?
This is postpartum bleeding, so she should not fast or pray until she sees the signs of purity, unless it exceeds sixty days, as the maximum duration for postpartum bleeding is sixty days, and the majority of women experience forty days. If it exceeds sixty days, it is considered irregular bleeding (Istihada). It would be advisable to consult a doctor after the sixty days. And Allah Knows Best.
What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. And Allah Knows Best.