I think your child is constipated and it probably hurts when she tried to poo. Try giving some water after you feed solid. Can also try giving probiotics daily to help her digestive system.
Monitor her bowel and if she doesn't poo a few days, can give some prune juice to loosen her stools