Display only published posts when searching for a specific post.