title: Wordpress: Query child pages content while on parent pages
body: <p>I have custom post types setup - called projects and enabled child pages. While I am on the parent page, I want to query the content of the child pages on the parent page. </p>
  
  <p>Here is my attempt. This queries ALL custom post types called projects. Can anyone help me query the child pages?</p>
  
  <pre><code>&lt;?php
  
  $args = array(
  
      'child_of' =&gt; $post-&gt;ID, 
      'post_type' =&gt; 'projects', 
  
      'order'          =&gt; 'ASC',
      'orderby'        =&gt; 'menu_order'
   );
  
  
  $wpq = new WP_Query( $args );
  if( $wpq-&gt;have_posts() ): while( $wpq-&gt;have_posts() ): $wpq-&gt;the_post(); ?&gt;
  
          &lt;div id="parent-&lt;?php the_ID(); ?&gt;" class="parent-page"&gt;
              &lt;?php echo the_content();?&gt;
          &lt;/div&gt;
  
      &lt;?php endwhile; ?&gt;
  
  &lt;?php endif; wp_reset_query(); ?&gt;
  </code></pre>