Add a post_type check before render