Allergies to cow milk or cow milk products can lead to constipation in children, states the Mayo Clinic. However, an inactive lifestyle and poor diet cause the majority of constipation cases, rather than a food allergy, explains Everyday Health.
In general, dairy products can also slow down digestion due to their low fiber content, reports Health.com. Although food allergies are not a common cause of constipation, a 2005 study reported that chocolate, bananas and black tea caused constipation problems for patients who already had problems with chronic constipation and irritable bowel syndrome.
Foods high in fat and sugar can also lead to constipation, according to Everyday Health. A diet lacking in high-fiber foods, such as fruits, vegetables and whole grains, can cause constipation. In addition, not drinking enough water and consuming alcohol and caffeine also lead to constipation.
Constipation also has non-dietary causes, explains Everyday Health. Medications such as diuretics, antidepressants and anticonvulsants can all cause constipation, while health conditions such as Parkinson's disease, hypothyroidism and diabetes can also lead to constipation.
To help relieve constipation, increase fiber intake to at least 20 to 35 grams daily, recommends WebMD. Exercising regularly, reducing high-fat foods and drinking eight glasses of water a day also aid in relieving constipation.