Answer:
As long as the price of one bushel of wheat ($6) is higher than the variable cost of producing one bushel of wheat ($4), the farmer should continue producing wheat. He will be losing $2 per bushel, but if he stops producing wheat he will lose $4.
If the price of wheat doesn't increase in the long run, the farmer should stop producing wheat.