/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if($post->post_parent) { $parent_title = get_the_title($post->post_parent); echo $parent_title; } else { wp_title(''); } ?>
URL: http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on
Comments
