PurabTech is technical blog for Programmer and Coders
how to get parent page title in wordpress
If want to get parent page title in wordpress and show in wordpress then use following code snippet in your theme you can easily get the parent page title.
how to get parent page title in wordpress
Normally what I would do is check $post->parent and if 0 then return page title else return title of page above. Problem is that $post->parent will only go back one level. I need to use some sort of recursive function that keeps going back until $post->parent == 0.
Add following code in to your wordpress theme, functions.php file and that sit. you will done.