Make taxonomy class conditional on loop items