$pages->children()

Returns a $pages collection with all children of each page in the collection

  • return ($pages)
// fetch the children of all pages in the collection
<?php

foreach($pages->children()->visible() as $child) {
  echo $child->title()->html();

?>

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