<?php
$jobs_container_page_id = $p->id; // IN JOBS LISTING PAGE

// Set up listing
$jobs = Listing::newInstance($jobs_container_page_id)
                   ->setLimit(12)
                   ->setCurrentPage((isset($_GET['page']) ? $_GET['page'] : null))
                   ->run();

$jobs->getListing();

$jobs->getPagination($twig);
$twig->addGlobal('pagination', $jobs->pagination);
$twig->addGlobal('job_list', $jobs->list);


