my two and a half yr old had a problem with constipation for about a year.
we had to use karo syrup. cut out binding foods
here this might help:
Increase fluids: Increase the amount of water and fruit juices (minimum of 2-3 glasses) that your child drinks each day.
Increase fiber: Increase the amounts of fruits and vegetables that your child eats. Raw, unpeeled fruits and vegetables (especially beans, sweet potatoes, peas, turnip greens, raw tomatoes and corn) have the most fiber. Popcorn also has lots of fiber in it. Give enough grams of fiber to equal their age in years plus 5 each day (check the nutritional label for high fiber foods and snacks with at least 3-4g of fiber per serving). Vegetable soups are especially high in fiber and also add more fluid to your child's diet.
Increase bran in your child's diet by offering bran cereals, bran muffins, shredded wheat, graham crackers, or whole wheat bread.
Decrease constipating foods: These include milk, yogurt, cheese, cooked carrots, and bananas. Drinking too much milk (your child may only be drinking 2-3 cups a day, but it may be too much for his system to handle) is heavily associated with being constipated. Switching to soy milk has been shown to soften stools. If your child is unable to drink milk, then offer a daily multivitamin or other sources of calcium.