In my experience, when I had a bad flare-up, any food could cause a blockage and a lot of pain. Eventually, I learned to stop eating solid food and just drink Boost/Ensure for several days until the flare-up subsided.
Other than that, the only food that badly affected me was popcorn. I had to learn to limit how much I consumed at one time (difficult when you are sharing a bucket at the movies) and to drink a lot of fluids when I did eat popcorn.