Developer Portal
Theme Development

Template Hierarchy

AIPostify resolves views according to a deterministic template hierarchy handled by App\CMS\Themes\TemplateResolver.

Resolution Order

When a page request comes in, AIPostify searches the active theme's views/ folder in this exact sequence:

Request TypeTemplate Lookup Sequence
Single Postsingle-{post_type}-{slug}.blade.phpsingle-{post_type}.blade.phpsingle.blade.phpindex.blade.php
Single Pagepage-{slug}.blade.phppage.blade.phpindex.blade.php
Archive Pagearchive-{post_type}.blade.phparchive.blade.phpindex.blade.php
Taxonomy Termtaxonomy-{taxonomy}-{slug}.blade.phptaxonomy-{taxonomy}.blade.phptaxonomy.blade.phparchive.blade.phpindex.blade.php
Home / Blog Indexhome.blade.phpindex.blade.php
Search Resultssearch.blade.phpindex.blade.php
404 Not Found404.blade.phpindex.blade.php

Last verified against AIPostify core. © 2026 AIPostify Marketplace Developer Documentation.