Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is it even possible to paginate filtered collections as below?
{%- liquid
assign filtered_collection = collections | where: collections.metafields.custom.x, 'foo'
-%}
{%- paginate filtered_collection by xyz -%}
something
{%- endpaginate -%}
I tried as above but this returns, 'filtered_collection' is not paintable.
Wondering if Shopify/liquid can paginate filtered collections
I am interested in this topic because I want to make sure the pagination number is correct and the items displayed on the page are correct.
@begginer1231
Follow below step for pagination :
{%- paginate blog.articles by 5 -%}
{%- for product in collection.products -%}
<!-- show product details here -->
{%- endfor -%}
{{ paginate | default_pagination: next: 'Older', previous: 'Newer' }}
{%- endpaginate -%}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025