Co-parenting after divorce is difficult. There's no two ways about it. If you couldn't make the partnership work before the divorce, chances are there are irreconcilable differences in your parenting styles as well. It's just a fact.
Some people have it easier than others. If both parents are willing to put their differences aside for the sake of the children, you may be able to make it work. If one parent distances themselves from the relationship, and limits the amount of time they see the children, it can also work. But in this world where courts are working more and more in favour of both parents parenting 50% of the time, co-parenting cooperatively becomes more and more of an issue.