Archived topic
GPP 2.0
3 replies · Started by Jason on March 27, 2021
When assigning dynamic data to a meta data that contains an array, is there anyway to then parse that array for display? Currently it just returns the word 'Array'
Hi there,
As of right now, only single return values are supported.
Interesting issue though, it would be nice to have a built-in solution. What kind of result are you looking for, exactly? I'm having a hard time imagining how a looped value would display inside of a dynamic block.
Im playing with metablocks plugin (I understand it would be similar with ACF etc) and creating a repeatable group field with components X, Y, Z
I would be looking for an output along the lines of
titleX: valueX
titleY: valueY
titleZ: valueZ
Perhaps as an unordered list as an example. Bonus points would be there for formatting controls
This would be quite difficult to get right I think. An unordered list sounds right, but GenerateBlocks doesn't have that kind of block as of right now.
It wouldn't really work with the existing blocks we have available (Headline/Button).
Everything is filterable, so it's possible to overwrite how GPP handles the post meta, but I'm not really sure it would be helpful for this kind of thing at the moment.