Unhandled Error!

Undefined variable: post_list

Document News Category
Document type CMS page
Line 6
Exception class Cms_ExecutionException

Code Highlight

<div class="page_header">
    <h2 class="primary"><?= h($this->page->title) ?></h2>
    <hr>
</div>
 
<? foreach ($post_list as $post): ?>
    <? if ( isset($post->featuredimages_calculated) ) {
        $image_file = Db_File::create()->where('master_object_id = '.$post->id.' AND master_object_class = "Blog_Post"')->find_all()->limit(1);
        $image_path = $image_file->getThumbnailPath(688, 'auto', true);
    } else
        $image_path = null;
 
    $post_title = h($post->title);
# Document Type
1 News Category CMS page