Support » Fixing WordPress » Custom page lists

  • I’m looking to have a list of links in the sidebar to only child pages of the current page. How would I go about calling just those links?

    Cheers

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    Forum Moderator

    Try something like:

    <?php if( is_page() && wp_list_pages('title_li=&echo=0&child_of='.$post->ID.) ) :?>
    <ul class="child_pages">
    <?php wp_list_pages('title_li=&child_of='.$post->ID.); ?>
    </ul>
    <?php endif;?>
Viewing 1 replies (of 1 total)
  • The topic ‘Custom page lists’ is closed to new replies.