• Hello there,

    I would like to have the parent page’s name to display in each page’s path (which makes my title).
    So far I found this line of code to have the parent page display as a link within the page path:

    <?php $permalink = get_permalink($post->post_parent); ?>
    <a href="<?php echo $permalink; ?>">Parent</a>

    this is what I’m looking for but instead of having the word “parent” I would need the parent page’s NAME.

    Any idea?
    thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Display Parent page's name’ is closed to new replies.