How To Display Parent Page Title in WordPress

The following code display the page title and show the parent page title if exist

To make it work, just insert the code anywhere in your wordpress template files, within the loop:

In case you want to display the immediate parent of a subpage, you can use the following code. In this portion of code, you have a link to the parent page itself.