我正在尝试在html list标记中的WooCommerce店面中显示“高级自定义字段”。我修改了文件:content-product_cat.php由此:<li <?php wc_product_cat_class( '', $category ); ?>>对此:<li style="background: <?php the_field('my_ACF_field'); ?>" <?php wc_product_cat_class( '', $category ); ?>>另外,我在WP后端上添加了ACF字段,并将其分配给名为“ Store”的页面,这是WooCommerce店面。我可以在后端(“商店”页面)上填写输入,但它不会在店面/类别页面上显示,只是没有通过。问题出在哪儿?我也尝试将此字段设置为分类法,并在WooCommerce中将其显示在类别设置上,但也没有成功。
1 回答
- 1 回答
- 0 关注
- 189 浏览
添加回答
举报
0/150
提交
取消