Is it possible to to display only certain rows of a repeater field depending on a meta key value (a number) that appears elsewhere on the page?
I’ve got a CPT called Projects and at the bottom of the page is a text box with the selection committee names. There’s a different set of names every year, and I’m not sure how to display only certain rows of the repeater.
The CPT archive template is set up to display projects in descending order according to the year meta key value, so 2015 projects appear, then the next page 2014 projects appear, then 2013 projects, etc.
I’ve got the repeater working, but I have no idea how to go about filtering through the rows from there so that when 2015 projects appear, a certain repeater row displays, then when 2014 projects appear, and when it’s 2013, different repeater row displays, etc.