title: how to get wordpress posts description and caption?
body: <p>Iam trying to get 5 featured post from wordpress, to achieve this target i have offset 5 recent post .I successfully fetched post id , images . But i failed to get every  posts description .i tried the code below but it only give me only 1 post description not all 5 .</p>
  
  <pre><code>$my_posts = get_posts(array('numberposts' =&gt; 5,
  'offset'      =&gt; 5,
  'orderby'     =&gt; 'post_date',
  'order'       =&gt; 'DESC',
  'post_type'   =&gt; 'post',
  'post_status' =&gt; 'publish'));
  
  
    foreach($my_posts as $post) {
  
  $data[] = 
  
      array(
         "id" =&gt; $post-&gt;ID,
        "title" =&gt; $post-&gt;post_title,
        "image" =&gt; get_the_post_thumbnail($post-&gt;ID),
       // "content" =&gt;$post['post_excerpt'] 
        "content" =&gt; apply_filters('the_content', $post-&gt;post_content)
      );
                         }
  </code></pre>