Not sure why, but when I add the following code on my custom page (art.hbs) it doesn’t load any posts.
When this is added to the index.hbs it loads perfectly fine (all posts no limit)
<div class="showcase-items">
{{#foreach posts limit="6"}}
{{> "showcase-item"}}
{{/foreach}}
</div>
<div class="post-feed">
<div class="grid-item grid-sizer"></div>
{{#foreach posts from="7"}}
{{> "loop"}}
{{/foreach}}
</div>
Now when I add the following code, the first 6 posts (showcase-items) work fine.
The others though stop at the 15th post.
So something is different in this way of approach?
I then added the following code to the index.hbs to see if it’s because of the {{#get “posts”}}, and yes because it outputs the same on index.hbs as on art.hbs with limited posts.
{{#get "posts" }}
<div class="showcase-items">
{{#foreach posts limit="6"}}
{{> "showcase-item"}}
{{/foreach}}
</div>
<div class="post-feed">
<div class="grid-item grid-sizer"></div>
{{#foreach posts from="7"}}
{{> "loop"}}
{{/foreach}}
</div>
{{/get}}
Could someone help me out here?