Blogs standard URL filter /tagged/tag not working

Topic summary

Issue: Blog tag filtering via /tagged/ links doesn’t work in the current “Local” theme, despite working on an older theme. The merchant generated tag buttons from blog.all_tags and current_tags, building URLs manually.

Key context:

  • Admin notice “theme doesn’t support filters” refers to product filters, not blog tags.
  • Article list was wrapped in a Liquid paginate block.

Latest updates and suggestions:

  • Reverting to an older theme version restored tag filtering, indicating a theme-specific implementation issue.
  • A contributor asked about pagination and shared a working approach: specify the blog handle explicitly (e.g., blogs.recipes.all_tags) and use Shopify’s helpers link_to_add_tag and link_to_remove_tag to build correct tag links and toggles. Their snippet runs inside pagination.

Technical notes:

  • paginate splits results into pages; current_tags is the array of active tag filters.
  • link_to_add_tag/remove_tag generate proper URLs for adding/removing tags, reducing URL-construction errors.

Status:

  • Partially resolved by reverting theme; root cause in the current theme remains unclear.
  • Actionable next steps: use explicit blog handle context and built-in tag link helpers within the paginate scope. Code snippets are central to understanding the fix.
Summarized with AI on December 21. AI used: gpt-5.

Current theme: Local

I added the following code to create a filter for blogs

{%- for tag in blog.all_tags -%}
        <a
          class="button button--small {% if current_tags contains tag %} button--solid {% else %} button--outline {% endif %}"
          href="{{ blog.url }}/tagged/{{ tag | handleize }}"
        >
          {{ tag | capitalize }}
        </a>
{%- endfor -%}

I also tried {{ tag.handle }} instead of {{ tag | handleize }}

However blogs aren’t filtered as intended, I searched for JavaScript code that could affect the filter’s functionality but didn’t find any

When I headed to navigation I saw this message "The current theme doesn’t support filters. " however after searching it should not affect the blogs filter it’s only for the products filter and I ensured the URL format was working by trying the same URL on an old theme where the blogs got filtered correctly

Are there any other steps to take in order to debug this issue?

Is your article loop wrapped in a paginate object?

Hello Matthaigh, I reverted to an older theme version and it fixed the issue but I’d still like to know how paginate can affect the filter of the article. Yes it was wrapped in paginate object

Hi Hiba

This was the snippet I used to get the tags to render in a list with links to add/remove.

I’ve had also specified which blog the tags are associated with “blogs.recipes.all_tags”.

This snippet sits inside pagination.


    {% for tag in  blogs.recipes.all_tags %}
        {% if current_tags contains tag %}
            - {{ tag | link_to_remove_tag: tag }}

        {% else %}
            - {{ tag | link_to_add_tag: tag }}
        {% endif %}
    {% endfor %}