Hi there,
Would appreciate if anyone got a minute to spare.
So I’ve got a page where I want to display some recent post by tags. While it works on my staging website, when I send my changes to production, the posts are not showing ![]()
Has anyone tackled with this issue before ?
Btw I’m trying to display those posts on Page template, not a blog/blog_listing template. They show nicely without any issues, until it’s on production.
{% set tag_posts = blog_recent_tag_posts("default", ["category-customer-stories"], 6) %}
{% for tag_post in tag_posts %}
<div class="flex flex-col customer-card">
<div class="customer-card-content">
{% if tag_post.featured_image %}
<a class="block" href="/blog/{{ tag_post.slug }}">
<img class="aspect-video w-full object-cover rounded-lg" src="{{ tag_post.featured_image }}" alt="{{ tag_post.featured_image_alt_text }}" loading="lazy">
</a>
{% endif %}
<div class="mt-5">
<div class="md:overflow-ellipsis md:overflow-hidden md:whitespace-nowrap">
<a href="#" class="text-sm font-semibold uppercase whitespace-nowrap text-gray-400 hover:no-underline hover:text-blue-500">Customer Stories</a>
</div>
</div>
<div class="mt-0">
<a class="mt-1 block hover:no-underline" href="/blog/{{ tag_post.slug }}">
<h3 class="mb-0 line-clamp-2 hover:text-gray-600 transition-colors duration-150 ease-out">{{ tag_post.name }}</h3>
</a>
</div>
<a class="mt-1 block hover:no-underline" href="/blog/{{ tag_post.slug }}">
<h3 class="mt-4 mb-4 button button-link large water">Read Story</h3>
</a>
</div>
</div>
{% endfor %}
