We were in a similar situation with DC, and pushed for blood testing to rule out underlying gastric issues that might be causing recurrent constipation. As it turns out, DC has celiac disease. We didn’t succeed with potty training until we started to get that under control.