I’ve been tearing my hair out over this issue for hours 🙁
I have an options page that has a repeater with a colour picker and post object (allows multiple to be selected). The idea is that from the options page the user can set global colour schemes to multiple pages.
I’ve set up a dynamic CSS file for the relevant classes (basically just using the hex value as a class) which is working fine but what I also need to do is add a CSS class to the entry-content tag of the relevant pages with the hex value class to target the relevant blocks and elements that will change colour.
The above code will list all ‘pages’ sub fields but I’ve tried dozens of iterations of the above code and I can output all the pages repeaters, but I only want to output the repeater that has the current page ID in it.