WordPress.org

Support

Support » Themes and Templates » [Resolved] How to exclude a child page from the list

[Resolved] How to exclude a child page from the list

  • Hello all, I’m trying to figure out how I can exclude a child page from not displaying on my list. Here’s my code I got from codex. Any help would be appreciated.

    <?php
    				  $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    				  if ($children) { ?>
    				  <ul>
    				  <?php echo $children; ?>
    				  </ul>
    				 <?php } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] How to exclude a child page from the list’ is closed to new replies.
Skip to toolbar