Missing field “name” Error in Google Search Console
-
Google search console is showing Missing field “name” error on my product pages and 7 warnings: Missing field “aggregateRating”, Missing field “review”, Missing field “brand”, No global identifier provided (e.g., gtin, mpn, isbn), Missing field “priceValidUntil”, Missing field “url”, Missing field “sku”.
I have been doing some research to fix the error but I can’t seem to find a solution. I tried adding this code the unction.php file:
function custom_woocommerce_structured_data_product ($data) {
global $product;
$data[‘brand’] = $shop_name = get_bloginfo( ‘name’ );
$data[‘mpn’] = $product->get_sku() ?? null;
return $data;
}
add_filter( ‘woocommerce_structured_data_product’, ‘custom_woocommerce_structured_data_product’ );And validated the fix but it’s still showing the error and warnings ??
The page I need help with: [log in to see the link]
- The topic ‘Missing field “name” Error in Google Search Console’ is closed to new replies.