Training is hard. My daughter just started pooping in the potty but every now and then she’ll miss and poop on the floor lol. She still hasn’t gotten the whole “pee goes in the potty too” yet though which is odd because I thought that comes first. For now, she just associates the toilet with poo. It takes time - hang in there. I suggest having him sit on the potty during his night time routine to let him know that he needs to go before sleepy time
I have the same issue my son will pee on the potty no issue but refuses to poop on it idk what to do would love to know how to help him 🤦🏻♀️