Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi everyone. I’ve got the same problem as clockeby – I’d like to merge the two bits of code so the following code only shows child pages. Is this possible?

    <?php
      $args = array(
      'orderby' => 'post_title',
      'order' => 'ASC',
    	'post_type' => 'page',
    	'showposts' => 1000,
    	'caller_get_posts' => 1
      ); 
    
    $pages = get_posts($args);
          foreach($pages as $page) {
              $out .= '<li>';
              $out .=  '<a href="'.get_permalink($page->ID).'" title="'.wptexturize($page->post_title).'">'.wptexturize($page->post_title).'</a></li>';
          }
        $out = '<ul class="page_post">' . $out . '</ul>';
        echo $out;
    ?>
Viewing 1 replies (of 1 total)