Schema.org product image for external featured image
-
WooCommerce only populates schema.org product image metadata if it finds an attachment image inside media library. It doesn’t if you use an external featured image by URL.
I think the issue core is here (“class-wc-structured-data.php”):
$shop_name = get_bloginfo( ‘name’ );
$shop_url = home_url();
$currency = get_woocommerce_currency();
$permalink = get_permalink( $product->get_id() );
$image = wp_get_attachment_url( $product->get_image_id() );Don’t you know how to workaround this limitation?
I’ve got a premium plugin which takes product datas from different affiliate merchant to create a Woocommerce product page with price comparison.
- The topic ‘Schema.org product image for external featured image’ is closed to new replies.