$page->hasNextInvisible([$sort, $direction])

Checks if the page has a next invisible sibling

  • $sort (string)
    An optional sort field for the siblings
  • $direction (string)
    An optional sort direction
  • return (boolean)

Example

<?php
echo $page->hasNextInvisible(); //will echo 1 if true, nothing if false.
?>

Using sort field

<?php
echo $page->hasNextInvisible('date', 'desc'); //will echo 1 if true, nothing if false.
?>

Is something missing or incorrect? Edit this page on Github…