Yes, Teresa is right on. Pumpkin is a miracle worker. It keeps them very regular.
Be sure to keep an eye on your little guy if he seems constipated. It can actually be very dangerous. Yorkies are so small, that it doesn't take long at all for them to get really backed up. Miles was constipated for a day, and by that night he started throwing up fecal matter...not a pleasant thought, but it's the truth. I had to rush him to the emergency vet...it was so frightening, not to mention expensive!
Try the pumpkin! Good luck!