Check if published is true before showing post.