Eat foods high in fibre.  Eat whole grains or add whole grains to other foods like soups and yoghurt. People with constipation should eat 18 to 30 grams of fibre per day. Drink eight 8-ounce glasses of water a day.  Liquids containing caffeine, such as coffee and soda, can leave you dehydrated. You may need to stop consuming these products until your intestines return to normal. Exercise regularly.