Add meta noindex to post if it has a specific taxonomy

You can use the wp_robots filter to manipulate the robots meta tag as needed. And as you’re checking against a taxonomy term you can use the has_term() helper conditional to make your code look a litte nicer. (A post can be passed to has_term() as the 3rd parameter, but if it is not passed then … Read more