
Originally Posted by
shags38
Hi Steve - I am using your latest version of Structured Data downloaded from GitHub recently on a V1.5.7b site and all is good with just this one query - in all cases Google is flagging a 'warning' for products in testing the markup via Google Rich Results ... 'Invalid object type for field "brand" .... this is auto filled correctly and when testing using
https://validator.schema.org/ there are no warnings.
So just wondering if there was a fix for this or is it simply Google being google?
cheers, Mike
Although I haven't kept up with the latest updates for this plugin, I think (my notes aren't great) that I had to add a 'Brand' object type. In jscript_plugin_structured_data.php I changed:
Code:
"brand": <?php echo json_encode($manufacturer_name); ?>,
to
Code:
"brand" : {
"@type" : "Brand",
"name" : <?php echo json_encode($manufacturer_name); ?>
},
With this I don't get a Brand warning in https://search.google.com/test/rich-results
Bookmarks