post meta checks if post has the category term to avoid errors