Throughout my life I have suffered from joint pain caused by inflammation. From years of experimenting on my self I have found that wheat DID NOT contribute to my pain. I gave it up for over seven years and still would have periods of painful inflammation. For me, after much trial and error, I have found that I am sensitive to plants in the nightshade family. Far worse though is refined white sugar. If I eat one too many (gf) cookies, cake, etc. I will be in pain the next day. When this happens I have found turmeric to be extremely helpful. I either make it into a drink with almond milk and ginger or I take the powder mixed with some ground black pepper in a capsule (I make my own to save money). I would recommend turmeric to try for sure. I also would suggest gradually eliminating foods you think might be contributing and then reintroducing them. A total elimination diet would probably be super helpful but it isn’t always doable nor practical for many people. Good luck to you! From someone who has been there, I sympathize.