In a crafting table the desired potion is placed into the middle and is surrounded by eight food items. The resulting foods will each retain their food stats as well as having the potion's effects when eaten.
Crafting recipe for all cake potion foods.
Crafting recipe for standard food items.