title: retrieve only sub-pages
body: <p>I want to list all sub-pages only one level though of one particular page. I was reading <a href="http://codex.wordpress.org/Function_Reference/get_pages" rel="nofollow noreferrer">Function Reference/get pages</a> and thought that <code>$pages = get_pages( array( 'child_of' =&gt; $post-&gt;ID, 'parent' =&gt; $post-&gt;ID)) ;</code> will do the trick but it is not working. It lists all pages on the same level like the page I call that code from. If I omit parent option I will get all pages even with sub-pages that I want. But I want <code>only</code> sub-pages.</p>
  
  <p>The whole function is like</p>
  
  <pre><code>    function about_menu(){
      if (is_page('about')){
  
      $pages = get_pages( array( 'child_of' =&gt; $post-&gt;ID, 'parent' =&gt; $post-&gt;ID)) ;
          foreach($pages as $page)
          {       
          ?&gt;
              &lt;h2&gt;&lt;a href="&lt;?php echo get_page_link($page-&gt;ID) ?&gt;"&gt;&lt;?php echo $page-&gt;post_title ?&gt;&lt;/a&gt;&lt;/h2&gt;
          &lt;?php
          }   
      }
      }
  </code></pre>
  
  <p>below are screen shots from wp admin and results. Mine is second one</p>
  
  <p><a href="http://img687.imageshack.us/img687/6139/e2568e8ec2684e7aa1bb3d1.png" rel="nofollow noreferrer">Screen shot from WP admin http://img687.imageshack.us/img687/6139/e2568e8ec2684e7aa1bb3d1.png</a> and <a href="http://img269.imageshack.us/img269/2365/329c5097c78f4d3186a177c.png" rel="nofollow noreferrer">the result http://img269.imageshack.us/img269/2365/329c5097c78f4d3186a177c.png</a> </p>