title: Wordpress - How to get any type posts include attachments by ids?
body: <p>I need to get any posts by an id list ($id_list), here is my codes</p>
  
  <pre><code>query_posts(array('posts_per_page'=&gt;-1,
                 'caller_get_posts'=&gt;1,
                 'post_type'=&gt;'any',
                 'post__in'=&gt;$id_list)
             );
  </code></pre>
  
  <p>i got posts and pages by this query, but attachments don't get included, i found they are filtered by 'post_type=any' which actually doesn't include attachment.</p>
  
  <p>How do i get them all without have to do an extra query?</p>