This should also filter by post type, to exclude pages and attachments: <code>AND post_type="post"</code>