Unhandled Error!

Undefined variable: posts

Document Blog Category
Document type CMS page
Line 2
Exception class Cms_ExecutionException

Code Highlight

<?
    $posts = $posts->order('published_date desc');
 
    $paginate = true;
 
    $remove_ajax = true;
    $partial = "blog-posts=blog:posts";
    $records_per_page = post('records_per_page', 24);
    $pagination_base_url = root_url('blog/category/'.$this->request_param(0));
    $page_index = post('index', ($this->request_param(-1) -1));
    $pagination = $posts->paginate($page_index, $records_per_page);
 
    $total_records = intval($pagination->getRowCount());
# Document Type
1 Blog Category CMS page