Cant display images of metafield with for loop, also the src i get is a "gid"

Cant display images of metafield with for loop, also the src i get is a "gid"

amadero
Shopify Partner
1 0 0

Hi, first time asking hope I can be kind of clear, I have a question regarding diplaying a metafield of image files (many images) through a custom liquid section. I cant figure out why the for loop doesnt show the elements of the array (this array does appear con the console while debbuging with console.log). And also the data I get isnt the typical url, but a "gid" even though I'm not using graph ql ...this is how the array looks: ["gid://shopify/MediaImage/33084230402358","gid://shopify/MediaImage/33084230172982","gid://shopify/MediaImage/33084230369590","gid://shopify/MediaImage/33084230435126","gid://shopify/MediaImage/33084230631734","gid://shopify/MediaImage/33084230566198"]

 

This is the array I can render to the page but cant loop through to render each item

Screen Shot 2023-03-10 at 6.51.41.pngScreen Shot 2023-03-10 at 6.49.26.png

 

Thanks in advance!
Replies 0 (0)