📜  wc 获取产品类别图像 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:05.242000             🧑  作者: Mango

代码示例2
get_queried_object();    
            $thumbnail_id = get_woocommerce_term_meta( $cat->term_id, 'thumbnail_id', true ); 
            $image = wp_get_attachment_url( $thumbnail_id ); 
            echo "";
        }
    ?>