It's important to understand why the child is constipated. There has to be a proper schedule and content of foods that you offer to the child.
Toilet training also needs to be done.
Next Steps
Best is to be counselled once on why it happens and what can be done so that constipation doesnt keep recurring. below is the main things to do. To do best, try to take online consult.
Health Tips
Repsonsive feeding
high fiber foods like oats, grains, rajma, chana, salads with cucumber, beetroot, raw veggies, fruits especially papaya, peas
atleast 1.2 - 1.4 litres of water per day