How To Get A Kitten To Poop?

My cat wont poop. He is in his litter box, he poops sometimes but suddenly stops and then starts again a few days later. I have been trying him on different foods that are high in fiber for a while now to no avail. What should I do?