Support » Themes and Templates » Don’t Display Child Page List on Certain Pages

  • I’m using this code to display a bullet list of child pages on my page template.

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

    However, there are some pages I’d like to not to have the list displayed. What’s the best code to do this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Don’t Display Child Page List on Certain Pages’ is closed to new replies.