Hi, I am having an issue with isotope where it is displaying the same post items exactly 16 times (which matches my filter count) before showing the next items and only when “All Topics” is selected. When selecting each filter, it displays the same post items and in the same order for each.
Hoping someone can provide some guidance.
<div id="filters" class="button-group filter-items">
{% set my_topics = blog_topics('default', 20) %}
<button class="button is-checked" data-filter="*">All Topics</button>
{% for item in my_topics %}
<button class="button" data-filter=".{{item.slug}}">{{item}}</button>
{% endfor %}
</div>
<div class="post-listing isotope">
{% set posts = blog_recent_posts('default', 100 ) %}
{% set my_topics = blog_topics('default', 20) %}
{% for post in posts %}
{% if loop.index > 1 %}
{% for item in my_topics %}
<div class="post-item {{item.slug}}">
<article class="blog-index__post-wrapper">
<div class="blog-index__post">
{% if post.post_list_summary_featured_image %}
<a class="blog-index__post-image" href="{{ post.absolute_url }}">
<img src="{{ post.post_list_summary_featured_image }}" class="" alt="{{ post.featured_image_alt_text | escape }}">
</a>
{% endif %}
<div class="blog-index__post-content">
<div>
{% set featured_tag = post.topic_list | first %}
{% if featured_tag %}
<span class="blog-index__post-preheader">{{ featured_tag }}</span>
{% endif %}
<h3><a href="{{ post.absolute_url }}">{{ post.name }}</a></h3>
{% if content_group.show_summary_in_listing %}
<p>{{ post.meta_description | default(post.post_summary, true) | truncatehtml(150, '...', false) }}</p>
{% endif %}
</div>
<a class="more-link" href="{{ post.absolute_url }}">Read More</a>
<div class="blog-index__post-meta" style="display:none">
<span class="blog-index__post-author">
{{ post.blog_post_author }}
</span>
<span class="blog-index__post-date">
{{ post.publish_date | datetimeformat('%b %e, %Y') }}
</span>
</div>
</div>
</div>
</article>
</div>
{% endfor %}
{% endif %}
{% endfor %}
</div>