Hello,
Please bear with me.
I’m trying to create a restaurant menu using ACF and the repeater plugin.
The screenshot below shows what I’m trying to achieve.
https://dl.dropboxusercontent.com/u/460884/Screen%20Shot%202014-07-18%20at%2015.34.14.png
I have three templates each showing the same menu but in certain pages ‘special’ items will be shown where a class is set to be styled in CSS.
e.g
King’s Cross Page lists Dish 1 and Dish 2(special)
but
Covent Garden Page lists Dish 1 and skips Dish 2 because it’s selected to be a special for King’s Cross.
Is this possible and how?
Thank you.
You need to have something set on the page for “King’s Cross” that will always be exactly equal to the value selected in you “Special?” field. Then when you’re looping through your repeater (http://www.advancedcustomfields.com/resources/functions/get_sub_field/), if the value for special is set and it does not equal the value for the page then don’t display that set of sub fields.