• Resolved keress

    (@keress)


    I’d like the name of the parent page to show at the top of the page, no matter which child page is showing. What’s the right tag for that?

Viewing 1 replies (of 1 total)
  • Thread Starter keress

    (@keress)

    A kind soul supplied me with the code:

    <?php
    $parent_title = get_the_title($post->post_parent);
    echo $parent_title;
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Tag Question, how to get name of parent page as title’ is closed to new replies.