Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am trying to create xml feed Liquid code to get 1000 products from shopify but not able to sort by date. Every time i run code, its getting last 1000 products. I have 5K products on my shopify.
If I tried sort first but then it shows the error on paginate code because paginate only accept original array collections.all.products.
How to get newly listed product first?
My code -
{% paginate collections.all.products by 1000 %} {%- assign collection_products = collections.all.products | sort: 'created-descending' | reverse -%} {%- for product in collection_products -%} ......rest of the codee..... {%-endfor -%} {%- endif -%} {%- endfor -%}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025