abstract the publishedposts instead of all posts.

need to filter on whether it was published.