I have a multi-column layout that is supposed to only display items that are set to a certain type.
There is a custom field that lets you select whether the entry is an event or an offer.
So within my entries loop, I have {if event_type == "offer"} which only displays entries set to be an offer.
Then I use {switch='floatleft|floatright'} to set the class of a div to create the columns.
The problem I have is that since not all entries are offers, the loop is still counting the entries that don’t get displayed so the switch statement does not work correctly and the visible entries do not alternate between floatleft & floatright.
Hope that makes sense.
Any help is appreciated.