One of the best things about Pro is the ability to create your own loopers and fill them with data. I’ve done this many times and it’s really easy and ingenious to put your own data in the front end.
But there are a few cases where it would make sense to modify this function a bit.
As an example I would like to mention where I use a custom looper to load an array via the Flickr API and output it as a gallery. I also want to load the additional info about the album, which needs a separate API call. I had previously created this as shortcode, which only allows one return value. But I want to read the name and the number of photos from the API without doing the API call each time with a separate shortcode.
My current solution is to have a separate looper provider for the Flickr gallery and inside a second one that reads the gallery info. This nested provider of course only returns a single array with all the info I need.
In my case it works fine, my thought is, if I can’t create another provider for my own data list because of a special nesting, it would be great to be able to define an additional function that returns such data. I imagine an additional option below Provider and Consumer, which for example is called “Additional dynamic data” and can be added via the dynamic function just like other data fields from the list. It would be a kind of supershortcode that can provide multiple data at once.
What do you think about this?