$page->parent()

Returns the parent $page object

  • return ($page)

Example

This page is a subpage of:

<a href="<?php echo $page->parent()->url() ?>">
  <?php echo html($page->parent()->title()) ?>
</a>