Avoiding wheat may be sensible but not for the reasons you think

*FODMAPs stands for Fermentable Oligo- Di- and Mono-saccharides And Polyols. FODMAPs are found in a wide variety of food, for instance lactose (found in milk), free fructose (in pears, apples), fructans and fructo-oligosaccharides (in wheat, rye, onions, garlic) and galacto-oligosaccharides (in legumes).

Wheat and gluten