查看wordpress页面用的是那个PHP文件模板
在子主题 functions.php 里加一个调试钩子:
add_action('wp_head', function() {
global $template;
echo "<!-- Current template: " . basename($template) . " -->";
});
刷新 产品标签页面,在页面源码部分会看到:
<!-- Current template: archive-product.php -->