Hello,
Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.
If you are using Rank Math’s Woocommerce Product schema, the review to be added to the schema will be taken from your product pages automatically and turns it into Schema-ready content.
Please ensure if that is the case. You may refer more about it here: https://rankmath.com/kb/aggregate-rating-error/
Hope that helps you resolve your issue and please do not hesitate to let us know if you need our assistance with anything else.
Hi Jeremy, thanks for your reply!
The schema I have used is WooCommerce Product, please see the attached image ππΌ
https://drive.google.com/file/d/1l-8toKsxffM0SrdyMu1Rr7f5ra6KaI_Q/view?usp=sharing
But I’m using judge.me as my review plugin ππΌ
https://drive.google.com/file/d/1ZKP_CGlWPnkq4vuSrwkgGyLZ70t6i4tB/view?usp=sharing
Do I need to do something so that the review snippets from judge.me will be included on the WooCommerce Product schema?
Thanks!
Hello,
To properly apply the aggregateRating generated by Judge.me to Rank Math’s product schema, please add the following code in your themeβs functions.php file:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ){
global $post;
$entity['@id'] = get_the_permalink( $post );
return $entity;
});
Let us know how that goes. Looking forward to helping you.
Thanks Jeremy, it’s all good now!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.