Hi, I’m looking for help regarding the issue I’m having with showing three recent blog posts below the article. I would like to remove the current article and skip to the next one.
Here’s the example - this is one of our latest blog posts:
And you can see that this same post is showing in the bottom of its own article under ‘Latest from our Blog’
We are using the Wokiee theme and the site in question is www.giftay.eu. How can we exclude the CURRENT POST from this section? Here is the liquid code for this section:
{%- assign item = section.settings -%}
{%- assign blog = blogs[item.blog] -%}
{%- assign grid = item.items | plus: 0 -%}
{%- capture image_size -%}600x{%- endcapture -%}
<div class="{% if item.top_offset == 'none' %}nomargin {% elsif item.top_offset == 'small' %}tt-offset-small {% endif %}container-indent {{ item.custom_classes }}">
<div class="container{% if item.fullwidth %}-fluid{% endif %}">
{%- if item.show_title -%}
<div class="tt-block-title{% if item.title_to_left %} text-left{% endif %}{% if item.boxed_title and item.fullwidth %} container{% endif %}">
<h2 class="tt-title" style="text-align: center;">
{%- if item.use_title_as_link -%}<a href="{{ blog.url }}" class="title-hover-underline" title="{{ item.button_text }}">{{ item.text1 }}</a>
{%- else -%}{{ item.text1 }}
{%- endif -%}
</h2>
{% unless item.text2 == '' %}<div class="tt-description">{{ item.text2 }}</div>{% endunless %}
{% unless item.default_carousel %}{% unless item.text3 == '' %}<p>{{ item.text3 }}</p>{% endunless %}{% endunless %}
</div>{% endif %}
<div class="tt-blog-thumb-list">
<div class="row">
{%- unless blog.empty? -%}
{%- for article in blog.articles limit: item.limit -%}
<div class="col-12 col-sm-6 col-md-6 col-lg-{{ grid }}">
<div class="tt-blog-thumb respimgsize">
{%- if article.image != blank -%}
<div class="tt-img">
<a href="{{ article.url }}">
<img class="lazyload"
loading="lazy"
width="600"
height="314"
data-mainimage="{{ article.image | product_img_url: '100x100' | replace: '100x100', 'respimgsize' }}"
alt="{{ article.image.alt | escape }}"/>
</a>
</div>
{%- endif -%}
<div class="tt-title-description">
<div class="tt-background"></div>
{%- if article.tags.size > 0 and item.show_tags -%}<div class="tt-tag text-uppercase">
{%- for tag in article.tags -%}
{%- assign a_url = tag | handle -%}{%- assign a_url = blog.url | append: '/tagged/' | append: a_url -%}
{{ tag | link_to: a_url }}
{%- endfor -%}
</div>{% endif %}
<div class="tt-title{% if settings.block_titles_uppercase %} text-uppercase{% endif %}">
<a href="{{ article.url }}">{{ article.title }}</a>
</div>
{%- if item.show_description -%}
<p>{% if article.excerpt.size > 0 %}
{%- if section.settings.truncate_excerpt -%}{{ article.excerpt | strip_html | truncatewords: section.settings.truncate, section.settings.truncate_last_symbols }}
{%- else -%}{{ article.excerpt }}
{%- endif -%}
{%- else -%}{{ article.content | strip_html | truncatewords: section.settings.truncate, section.settings.truncate_last_symbols }}{%- endif -%}
</p>
{%- endif -%}
<div class="tt-meta">
{%- if section.settings.blog_show_author or section.settings.blog_show_date -%}
<div class="tt-autor">
{% if item.blog_show_author %}{{ "blogs.general.author_by_html" | t: author: article.author }}{% endif %}
{% if item.blog_show_date %} {{ "blogs.general.on" | t }} {{ article.published_at | time_tag: format: 'date' }}{% endif %}
</div>
{%- endif -%}
{%- if item.show_comment -%}
{%- if article.comments.size > 0 -%}{%- assign comment_url = article.url | append: '#comments' -%}{%- else -%}{%- assign comment_url = article.url | append: '#addcomment' -%}{%- endif -%}
<div class="tt-comments">
<a href="{{ comment_url }}"><i class="tt-icon icon-f-88"></i>{{ article.comments.size }}</a>
</div>
{%- endif -%}
</div>
</div>
</div>
</div>
{%- endfor -%}
{%- else -%}
<span style="display: flex; justify-content: center;">This section doesn’t currently include any content. Add content to this section using the sidebar.</span>
{%- endunless -%}
</div>
</div>
</div>
</div>
Thanks in advance for any help!


