Get parent page title
- bayerberg
- Master Bludit
- Posts: 141
- Joined: Wed Jun 07, 2017 1:05 pm
- Location: London, UK
- Has thanked: 7 times
- Been thanked: 10 times
- Contact:
Figured it out
Code: Select all
<?php if($Page->parentKey()) { echo '<a href="'.$pages[$Page->parentKey()]->permalink().'">'.$pages[$Page->parentKey()]->title().'</a> /';}; ?>