A child's diaper needs to be changed when it's wet enough which is usually every 2 or 3 hours.
If the diaper has poop in it then the child's poop diaper should be changed immediately.
You should also change a diaper before bed and after the child wakes up in the morning. Then check the diaper throughout the day and change when needed.