To achieve this trick, simply edit your page.php Or single.php file and paste the following code where you’d like your parent page title to be displayed:
<?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?>
That’s all. Also, this code should be some inspiration for creating breadcrumbs. See you tomorrow!
If you enjoyed this article, please consider sharing it!