As children continue to grow, their diet and nutrition evolves as they are introduced to new foods whether at home, school, or a friends house. With gluten and dairy both being very common food allergens, they can often times be triggers for constipation.
Paying attention to what your kiddo is eating and if they get bloated or uncomfortable after eating certain foods can be the first indication of a nutritional cause of constipation. If this is concern, check out the resources online or work with a professional to guide you through a possible elimination diet with your kiddo or some other useful tips to adjust what they're eating.