• Resolved jonnyh431

    (@jonnyh431)


    I want to list the child pages of the parent but don’t want to go any further e.g

    Parent—->Child

    But with the code below I get.

    Parent—->Child—->Grandchild—->Great Grandchild etc…

    <?php
      $children = wp_list_pages('title_li=&amp;child_of='.$post->ID.'&amp;echo=0');
      if ($children) { ?>
      <ul>
      <?php echo $children; ?>
      </ul>
      <?php } ?>

    Could someone help me out please.

Viewing 5 replies - 16 through 20 (of 20 total)
Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘wp_list_pages help me!!!’ is closed to new replies.