Posted By

fidiz on 01/04/11


Tagged

wordpress


Versions (?)

Wordpress: Parent page's title in Subpage


 / Published in: PHP
 

  1. <?php
  2. if($post->post_parent) {
  3. $parent_title = get_the_title($post->post_parent);
  4. echo $parent_title;
  5. ?>

Report this snippet  

You need to login to post a comment.