Hello,
I am currently working on customizing the blog section of my Shopify store and I need assistance with filtering blog articles that have an image.
I am using the following Liquid code to display a limited number of blog articles:
{%- for article in section.settings.blog.articles limit: section.settings.post_limit -%}
{%- endfor -
%}
What I would like to do is only display articles that have an image associated with them. Is it possible to filter blog articles by the presence of an image before looping through them?
I tried using the where or select filters, but I am not sure how to implement this properly. Any help or suggestions would be greatly appreciated!
Thank you in advance!