I have two loops going but I’m trying to have one delimit the other. Is that possible? Here’s what I mean.
I have Field Group (Topics) that is a Repeater and includes 3 subfields: two text fields and a Taxonomy field using Category (where checkboxes allow you to select Categories). It’s set to appear on every Page admin.
Then, I also have Custom Post type (Resources) that is fed by different Field Group (Resource Items) that contains 3 fields, one of which is a Taxonomy field using the same set of Categories as the Topics field group.
So, in the WP admin for a Page, you see the Topics Repeater, and you can add different topics by adding rows. In each repeater, you add text to the two text fields but you also check which Category or Categories that text content is relevant to.
So far so good. Now, on the Cornerstone build, two columns: The left loops the two text fields in the Topics field group. The right loops the contents of the Resources custom post type.
BUT my problem: I want to delimit which Resources appear by what categories were chosen in the Topics repeater.
How do I set up a Dynamic Content query to pull this in? It would be sort of like:
{{dc:looper:field key=“resources” field=“ {{category you checked in the Topic repeater}}” }}
Is there a way to do that with the tools inside Cornerstone? Any advice or resources appreciated.