[insert_php]
$current = $post->ID;

$parent = $post->post_parent;

$grandparent_get = get_post($parent);

$grandparent = $grandparent_get->post_parent;

if ($root_parent = get_the_title($grandparent) !== $root_parent = get_the_title($current)) {echo “

“; echo get_the_title($current); echo ” “; echo get_the_title($grandparent); echo “

“;}else {echo get_the_title($parent); echo get_the_title($current); }
[/insert_php]

Coming Soon