Jump to content

Pagination not working :(


benbyf
 Share

Recommended Posts

Hello, sure there is something stupid im doing here but cant seem to get the pagination to work. The page list appears but clicking on any of the next

template has Allow URL segments? checked and contains:

$results = $page->children("limit={$limit}");

$pagination = $results->renderPager();
$out .= "<section class='blog-posts'>";
foreach($results as $result) {
    $out .= "<h3><a href='{$result->url}'>{$result->title}</a></h3>";
}
$out .= $pagination;

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...