Add a post type check.