Hi everyone,
I successfully managed to create a page template that shows all blog posts matching a particular tag.
The code is below - it looks for blog posts with tag “health” in “news” blog. It then outputs the blog post title and an excerpt.
All works fine, however it only seems to show blog posts that were published recently (this month or last 30 days?).
Does anyone know why this is the case and what I can do to get it to show ALL matching blog posts?
Thank you!
# {{ page.title }}
{{ page.content }}
{% for article in blogs['news'].articles %}
{% if article.tags contains 'health' %}
**{{ article.title }}**
{{ article.content | strip_html | truncatewords: 50 }}
{% endif %}
{% endfor %}