这听起来像一个简单的问题,但我找不到正确的答案 .
我希望我的所有产品都在我的WooCommerce产品页面上,但按类别排序 . 像这样:
Category 01 title
- products of category 01
Category 02 title
- products of category 02
Category 03 title
- products of category 03
我已经找到了这个代码:question 139196,但那个's more case specific. I'正在寻找更通用的解决方案 . 如何使用产品循环(content-product.php)更改主产品页面(archive-product.php)以显示其类别中的产品?