title: Get an array of child posts IDs, wordpress 3.0, php
body: <p>Ok here's one for ya...</p>
  
  <p>On a custom template I'm using this code to retrieve &amp; display a list of child pages/posts</p>
  
  <pre><code>$args = array(
                      'depth'        =&gt; 1,
                      'show_date'    =&gt; '',
                      'date_format'  =&gt;     get_option('date_format'),
                      'child_of'     =&gt; $post-&gt;ID,
                      'exclude'      =&gt; '',
                      'include'      =&gt; '',
                      'title_li'     =&gt; '',
                      'echo'         =&gt; 1,
                      'authors'      =&gt; '',
                      'sort_column'  =&gt; 'menu_order, post_title',
                      'link_before'  =&gt; '',
                      'link_after'   =&gt; '',
                      'walker' =&gt; '' );
  
                      wp_list_pages( $args );
  </code></pre>
  
  <p>This works great, I'm also wondering how I can access/create an <code>array</code> of child post ID's. My goal is to access some <code>custom fields</code> meta data through the <code>get_post_meta()</code> function of each child post using it's ID.</p>
  
  <p>Thanks guys.</p>