I'm trying to output 9 separate datasets (which represent restaurant menus) while using just one content-type. The fields of this content-type are named according to day of the week, meals types (lunch, dinner) and a taxonomy of food options, i.e. 'field_monday_lunch_soup'. On the front-end, I intend to represent the data using accordions and tabs, which is why isolating specific fields is so important.
All fields (including the nine boolean fields) are part of the same content-type. When the admin submits a menu he can associate it with one of the nine restaurants.
How do I construct an if then statement to isolate fields so that I make it clear on the user-facing side that the data is associated with a specific restaurant? I want to avoid using views and various content-types because it quickly becomes overwhelming with all the various permutations.
So my php logic is something like this at the moment:
<?php if ($content['field_restaurant_one']['und']['value'] == '1'): ?>
Any help would be hugely appreciated! I'm thinking EFQ (entity field query) is the way to go.