It probably does work better to take the imodium before eating. I think I'd forget so I take 3 imodium in the morning with breakfast and that's also when I eat the wafers. Imodium has a half-life so if you take it daily you'll have a bit that's still effective.
If you want to space your imodium and wafers out during the day then yes, take both before meals.
kathy