Hello,
I’m trying to do something specific and I’ve tried to google it but I couldn’t find anything useful so far.
I have a custom post type called “Itinerary” with a lot of custom fields including a repeater field “day_repeater” and a nested repeater “accommodations” with a subfield “status”. This looks something like this:
Link to the image since it won’t show it with the img tag:
http://tinyurl.com/y54vzh68
There is also a tab called Status in this image.
What I’m trying to do is to show all “status” subfields from the repeater field in this tab with the same values as in the repeater (basically clone them so that they show the values from each repeater).
This will be used so that the client doesn’t have to open every repeater to see the status of the accommodation, he just needs to open the status tab and see for each day the status of the accommodation.
Is this possible to accomplish and if yes could you point me in which direction I should go?
I’ve searched for something similar but couldn’t find anything. From my point of view first I need to create a new field type in ACF (found this link: https://www.advancedcustomfields.com/resources/creating-a-new-field-type/), after that I should make a loop through the nested repeater and grab the values of the subfield “status” to display them in the new field type.
Would be great if you can help me out with this one. 🙂
Thank you in advance,
Kristijan