I have the same problem with my daughter about not pooping in the potty/toilet (but she has constipation problems too). Dont stress too much, he'll get it in his own time. Try and find a way to distract him from taking the nappy off and encouraging him to poo still in the potty/toilet. Hang in there, patience is the key