• I’ve been using

    <?php
    wp_list_pages(‘title_li=&child_of=’.$post->ID.”); ?>

    to generate a sidebar list of children pages, but I’d also like to include a link to the parent of the current page, essentially just a back button… I’ve looked through the codex, but I’m really new to WordPress and php too, and the answer could be right in front of me without me seeing it.

    Is there a simple way to get wordpress to return the parent page’s permalink so I can use something like

    <h3> Up one level… </h3>

    or a way to use wp_list_pages() to list only the parent page of the current page? If so, is there also a way to change the style of a wp_list_pages() result?

  • The topic ‘Sidebar links to child pages and parent page?’ is closed to new replies.