I am using the Grid Products plugin which is great. I want to check if a product has a certain category (the category’s slug is ‘auto’) from the single product page template and change the layout slightly to show a different ‘buy’ button to other products.
I have tried many ways of doing this – has_term, in_category etc but to no avail. Nothing seems to work.
Help would be much appreciated.
- The topic ‘Check if the product is in a certain category’ is closed to new replies.