Skip to main content
← Changelog

Direct Collection Lookups in Theme Templates

The collection filter can now query posts and categories by their real relationships, so themes pull exactly the records they need instead of loading heavy linked structures.

Rendering a page that pulls posts from several blogs, categories, and tags meant loading deep linked structures just to reach a handful of records, and on content-heavy pages that weight showed. Theme templates can now query a set of native relationships directly through the existing collection filter, so a template asks for exactly the posts it needs and nothing more. Pages built this way render faster and stay fast as the underlying content grows.

Query relationships from a template

The collection filter accepts field lookups for posts by blog, category, tag, or id, and categories by blog. Editorial ordering is preserved when looking up hand-picked ids, results come back in lean card-ready shapes, and sorting and limits work as you would expect. Existing custom-attribute lookups behave exactly as before, so current themes need no changes.

Fast and safe by default

Every native lookup respects the site's scoping, publication rules, and preview state automatically: live pages only see published posts, while previews include drafts. Limits are capped, identical lookups within a request are answered once, and a failed query renders as an empty list rather than an error, so a template mistake never takes a page down.

Feature Themes