Display title of parent & sub page

global $post;
if($post->post_parent)
{
$parent_title = get_the_title($post->post_parent);
echo $parent_title;
}
else 
{
wp_title('');
}

Comments

Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation