Only query for published posts
Adjust post_status so it can be used for attachments
Merge pull request #1 from crowdfavorite/fix-post-status

Only query for published posts