title: get_posts no older than X days - Wordpress
body: <p>In my Wordpress site, I use this <a href="http://codex.wordpress.org/Template_Tags/get_posts" rel="noreferrer">get_posts</a> code:</p>
  
  <pre><code>get_posts(
          array (
              'numberposts' =&gt; 5,
              'orderby'=&gt;'comment_count',
              'order'=&gt;'DESC',
              'post_type'   =&gt; array ( 'post' )
          )
  </code></pre>
  
  <p>How do I filter it so that the posts are not older than 10 days? So it should only list posts from the past 10 days.</p>