Forum

Thread tagged as: Question, PayPal

Paypal Shop - Get Product Category

How do I get the product category for an individual product on product.php?

I've had a look at the documentation but I can't figure out how to print the category that the product belongs to.

Any help would be greatly appreciated.

Stuart Christie

Stuart Christie 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Use:

perch_shop_product_categories('product-slug');

Just what I was looking for!

Thanks, Drew.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No problem.