Hi all,
I’m trying to print a list of files (images) through custom liquid code and for some reason, Shopify recognizes what I’m trying to do but only displays the placeholder “no image” instead of the images I added to the metaobject. As seen below:
The reason I’m doing it this way is because I want to be able to select a list of pictures I already uploaded for specific Influencers we partner with and doing it this way makes it easier for my co-workers to select pictures for each influencer, instead of having 9 different metafields inside the metaobject for each picture. I’ve shown my metaobject structure below:
I don’t understand why it is not working as I can access the metaobject information fine (the following code prints the name fine:
{% assign influencers = shop.metaobjects.influencer.values %}
{% for influencer in influencers %}
{{ influencer.name }}
{% endfor %} ) The code I'm using for the printing of the images is:{% assign influencers = shop.metaobjects.influencer.values %}
{% for influencer in influencers %}
{{ influencer.name }}
{% assign gallery = influencer.gallery | split: ‘,’ %}
{% for image in gallery %}
{% assign image_url = image | img_url: ‘500x’ %}
{% endfor %}
{% endfor %}
If anyone has any idea what I’m doing wrong or how I can approach this differently, please help. I have been stuck on this for quite some while and feel like this should be doable. If not, also please tell me.
Thanks for ANY help in advance!



