We may not think ‘Codswallop’ has anything to do with food or drink seeing as it’s a name given to nonsense or things that don’t appear to make any sense.
However, the word does have links to drink. A ‘wallop’ was once a slang term for a weak beer. In the nineteenth century, a Mr Hiram Codd began to manufacture soft drinks and patented bottles with gas pressure inside them. The staunch drinkers of stronger beer and alcohol jokingly referred to the soft drinks as ‘Codd’s Wallop’, joking that it was a weak beer.
Hence, the word began to be applied to anything that didn’t make sense or seemed a bit farcical.