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?


Viewing 1 replies (of 1 total)
  • 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.); ?>
    <?php endif;?>
Viewing 1 replies (of 1 total)
  • The topic ‘Custom page lists’ is closed to new replies.