{"id":298,"date":"2011-12-29T17:08:48","date_gmt":"2011-12-29T08:08:48","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=298"},"modified":"2012-08-23T17:31:20","modified_gmt":"2012-08-23T08:31:20","slug":"how-to-get-or-call-parent-post-title-in-page-or-post-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-get-or-call-parent-post-title-in-page-or-post-in-wordpress\/","title":{"rendered":"How to Get or call Parent Post or Page Title in WordPress"},"content":{"rendered":"<p>To achieve this trick, simply edit your page.php Or single.php file and paste the following code where you&#8217;d like your parent page title to be displayed:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n$parent_title = get_the_title($post-&gt;post_parent);\r\necho $parent_title;\r\n?&gt;\r\n<\/pre>\n<p>That&#8217;s all. Also, this code should be some inspiration for creating breadcrumbs. See you tomorrow!<br \/>\nIf you enjoyed this article, please consider sharing it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To achieve this trick, simply edit your page.php Or single.php file and paste the following code where you&#8217;d like your parent page title to be displayed: &lt;?php $parent_title = get_the_title($post-&gt;post_parent); echo $parent_title; ?&gt; That&#8217;s all. Also, this code should be some inspiration for creating breadcrumbs. See you tomorrow! If you enjoyed this article, please consider [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17,5],"tags":[148,149,152,725,151,150],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-just-blogging","category-tips-n-tricks","category-wordpress","tag-how-to-get-or-call-parent-post-title-in-page-or-post-in-wordpress","tag-how-to-get-parent-post-title-in-wordpress","tag-praent-page-title-in-wordpress","tag-wordpress","tag-wordpress-get-parent-post-title","tag-wordpress-how-to-get-parent-post-title"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":3,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions\/701"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}