Iterate Post Entries within Theme Layout

royallthefourth - 8 months ago

Is there a Twig tag I can use to gather all the open posts of a particular type and iterate across them?

ryanthompson - 8 months ago

Checkout entries('posts', 'posts').type(slug).get()

All streams support custom criteria (the type(slug) part). Here’s where to look for that:

Any cusotm criteria is always sitting next to the model