So what are the foods that cause constipation?

Food sensitivities (e.g., to foods such as chocolate, eggs, milk, meat, wheat, citrus, and corn) can also cause you to be constipated.
One thing to keep in mind is this: You may avoid all of the unhealthy foods I listed above and still be constipated. Everyone's body is so different. One food may have a harmful effect on you but not on someone else.
For best results, take the time to get to know your own body better. Pay attention to the foods you do well on and eat more of them.
At the same time, avoid or limit the foods that cause symptoms or that are more difficult for you to digest.