“In cases where the value is a nested array, Bricks will flatten it as a JSON string to allow for seamless output without any errors.”
I can see that the data is being returned as a JSON string, but I have no idea how to output any part of this in my template.
Can someone please decipher this explanation for me and let me know how I can output values from this subarray in my template using dynamic data variables?
I can write PHP, but I’d rather stick with the Bricks variables if at all possible.
Yes, of course, leave the code. It will be useful. But you could not register the shortcode, but simply create a function and display it as {echo:display-thumbnail}
Doing it solely as a function doesn’t allow me to pass parameters like size or class name, so a shortcode makes it more generally useful, rather than hardcoding these kinds of things.