Iterate Post Entries within Theme Layout
Created 8 years ago by royallthefourthIs there a Twig tag I can use to gather all the open posts of a particular type and iterate across them?
Is there a Twig tag I can use to gather all the open posts of a particular type and iterate across them?
Checkout
entries('posts', 'posts').type(slug).get()
All streams support custom criteria (the type(slug) part). Here’s where to look for that: https://github.com/anomalylabs/posts-module/blob/master/src/Post/PostCriteria.php
Any cusotm criteria is always sitting next to the model