ah and i use this code in function theme for solve other problem
add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
//remove reiew & aggregateRating data from the product schema
unset($entity['review']);
unset($entity['aggregateRating']);
unset($entity['offers']);
return $entity;
});
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['brand'] = 'Product tags';
return $entity;
});
/**
* Remove the generated product schema markup from Product Category and Shop pages.
*/
function wc_remove_product_schema_product_archive() {
remove_action( 'woocommerce_shop_loop', array( WC()->structured_data, 'generate_product_data' ), 10, 0 );
}
add_action( 'woocommerce_init', 'wc_remove_product_schema_product_archive' );
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Would you mind sharing some links to the affected products on the sensitive data section so that we can investigate this issue further?
Looking forward to helping you. Thank you.
​​​​​​​
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
THX DAVIS I ADD SOME LINK TO SENSITIVE DATA ITS 26 Elements affected
ITS ALL SITE LINK
Hi,
Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.
https://i.rankmath.com/Ni50EF
If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.
Please acquire some reviews and ratings to get rid of the aggregateRating
and review
warnings.
You can fix the SKU and availability issue quickly as well: https://i.rankmath.com/wtM5aM
Hope that helps and please do not hesitate to let me know if you need our assistance with anything else.
Hi everyone,
If you get the error “offers”, “review”, or “aggregateRating”… you should first check, which pages are considered to be “wrong” in the google search console:
– Single product page or
– product archive
In my case, it was just the archive page. There are several options how RankMath is treating archive pages. Check, if you use the “remove snippet” option in wooCommerce-Settings or product archive settings.
@Todd: Maybe you should consider telling this your Rank Math Bot, too!
Also see:
https://support.rankmath.com/ticket/product-archives-rich-snippets-generation-even-its-off/
Hi Frank,
I really appreciate the input.
Thank you.