Only potty trained in if naked .....

He has no issue going to the potty if he is naked and we are home all day he will go no problem he just goes sometimes I don’t even realize is that he went until he comes and gets me to flush the toilet (empty the potty)but the second anything is on him he just pees in it It’s no problem we’re at home all day cause he can just be in a longer T-shirt but when we have company over I have to put clothes on him and then we have to diaper him I just don’t understand how to get him To wear clothes and use the bathroom