'latest single blog post from particulat tags in shopify
Hi i am trying to display, Latest single post from particular tags, but i am not able to do so, can some one please check this code
{% for article in blogs.all-posts.articles limit:1%}
{% if article.tags contains "Glen Recipes" %}
{{ article.published_at | date: "%b %d, %Y" }}<br/>
{{ article.title | link_to: article.url }}<br/>
{% endif %}
{% endfor %}
<h2>TAg2</h2>
{% for article in blogs.all-posts.articles limit:1%}
{% if current_tags contains 'offers' %}
{{ article.published_at | date: "%b %d, %Y" }}<br/>
{{ article.title | link_to: article.url }}<br/>
{% endif %}
{% endfor %}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
