The text is a proverb suggesting that one's desires influence one's beliefs or thoughts. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
The wish is father to the thought .