use ajax request to retrieve more than 50 blog posts in a for loop

Shopify Partner
37 0 4

I'm painfully aware of the 50 products per page limit and now I found out that the same limit applies to a forloop of articles in a given blog. pagination won't work well in my case because I'm just displaying a list of (over 50) ingredients which are stored as blog articles. 

so my next guess is to make an AJAX request to retrieve all articles in blog.xyz but I don't know where to start now how to complete the task. 

any help appreciated.

my current forloop (where the "limit" attribute doesn't work, of course):

{% for article in articles limit: 100 %}
   <div class="ingredient-list-item">
      <a href="#ingredient-{{article.id}}" class="magnificIngredient">{{ article.title }}</a>
   </div>
{% endfor %}
0 Likes
Highlighted
Shopify Expert
704 0 67

Try one of these: https://github.com/Tricky3/Shopify_Infinite-Scroll

I'm a million different people
0 Likes