Yup, castor oil (or veggie oil) in a big syringe and straight to the back of the throat

Or you could try giving the piglet some melon to eat or fresh fruit juice in the water bowl will help to soften the stool too. It's most likely to be because he's making the switch from mum's milk to hard feed.
Poor wee guy, hope he's feeling better soon.
Karen