My first is twice in apple, but not once in tart. My second’s in liver, but it’s not in heart. My third is in giant and also in ghost. Whole I am best when I am roast. What am I?

Pig.

Source: Riotous Riddles