I would like to create a custom provider that can loop to a certain custom post type and in turn can contain custom WordPress Objects to loop over.
Here is an overview to better understand what I already have:
An Array of WordPress Objects for Campaigns that contain other WordPress Objects to the events in their own Array. (Of Course there are more Campaign Objects)
array (0) WP Object
'id' = 1234
'title' = campaign
....
'subloop' array (0) WP Object
'id' = 1235
'title' = 'event #1'
...
array (1) WP Object
'id' = 1236
'title' = 'event #2'
....
I just expanded the found WordPress objects with the ‘subloop’ array, that will show me with the debug-consumer correctly.
But when I want to run a custom provider over this subloop array, I don’t get any data.
Structure of the looper provider and consumer:
section [custom looper provider = campaign]
- row [looper consumer] (Works as it should)
-- column (Campaign Info)
"title campaign"
-- column [array looper provider = looper field "subloop"] (Doesn't work)
---- Output event [looper consumer]
"title event"
Is it because i use nested WordPress Post Objects?