title: How to get title from WP_Post Object
body: <p>i was trying to see the list of child pages name with some description to display ..i use below code</p>
  
  <pre><code>$my_wp_query = new WP_Query();
  $all_wp_pages = $my_wp_query-&gt;query(array('post_type' =&gt; 'page'));
  // Get the page as an Object
  $portfolio =  get_page_by_title('service');
  // Filter through all pages and find Portfolio's children
  $portfolio_children = get_page_children( $portfolio-&gt;ID, $all_wp_pages );
  // echo what we get back from WP to the browser
  echo "&lt;pre&gt;";print_r(
  );
  
  foreach($portfolio_children as $pagedet):
  
          echo $pagedet['post_title'];
  
  
   endforeach;
  </code></pre>
  
  <p>i am getting array before using foreach </p>
  
  <pre><code>when i print  $portfolio_children iam getting out put like this 
   Array
  (
   [0] =&gt; WP_Post Object
      (
          [ID] =&gt; 201  
           [post_title] =&gt; Website Hosting
       )
    [1]=&gt; WP_Post Object
  
        (
                [ID] =&gt; 202  
           [post_title] =&gt; Website
        )
  </code></pre>
  
  <p>after foreach if i print $pagedet iam getting</p>
  
  <pre><code>WP_Post Object
      (
          [ID] =&gt; 201  
         [post_title] =&gt; Website Hosting
       )
  </code></pre>
  
  <p>i tried to call $pagedet['post_title'] but id does't display any thing ...thanks in advance</p>