• Resolved stevert

    (@stevert)


    I am adding a custom field to the products’ schema with this

    add_filter( 'woocommerce_structured_data_product', function( $markup, $product ) {
        if( is_product() ) {
            $markup['brand'] = get_post_meta(get_the_ID(), 'brand', TRUE);
        }

    but I woul like to also add the products’s image and decription to the schema (for Google Merchant Center requirements), how can I add this to my code?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding additional schema markup’ is closed to new replies.