title: Need help displaying some posts with a shortcode in wordpress
body: <p>I'm trying to print out custom posts through a short code in wordpress.  Everything seems to be working except I can't get the content of the post to print out.  My code is below.</p>
  
  <pre><code>function sc_liste($atts, $content = null) {
     global $post;
     $myposts = get_posts('post_type=section_modules&amp;category_name=aboutiia&amp;order=ASC&amp;posts_per_page=3');
     $retour = '&lt;div class="container-fluid sectionBoxContainer"&gt;&lt;div class="row-fluid"&gt;';
      foreach($myposts as $post) :
              setup_postdata($post);
           $retour.='&lt;div class="sectionBox span4"&gt;&lt;h2&gt;'.the_title("","",false).'&lt;/h2&gt;&lt;div class="hrule_black"&gt;&lt;/div&gt;&lt;/div&gt;'.the_content();
      endforeach;
      return $retour;
      wp_reset_query(); 
  
  }
  add_shortcode("list", "sc_liste");
  </code></pre>