【发布时间】:2018-01-22 10:53:13
【问题描述】:
【问题讨论】:
-
@LoicTheAztec,感谢您的指导
-
Ok.. 位置已确定,但现在我无法显示帖子的自定义属性,我在 single-product.php 上有这段代码,我已将其移至 mu 函数。 php 文件:add_action('woocommerce_after_single_product_summary', 'custom_code_after_single_product_summary', 12);功能 custom_code_after_single_product_summary() { 全球 $product; // ===> 你的代码在这里 echo '
Product ID: '。 get_post_meta($post->ID, 'TABLE', true).'
'; }
标签: php wordpress woocommerce custom-attributes product