-
Hello We are getting the error in google search console for almost all products for this.
- This topic was modified 4 years, 9 months ago by peeyoosh kumar. Reason: updated sensitive data
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
It looks like you are loading your aggregateratings from the Judge me plugin. To be able to add this data to the Rank Math product schema, please add this code to 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; });
Looking forward to helping you. Thank you.
Hello:
We just added the code snipped to theme functions.php. Cleared all cache. Still we can see the same error in Google Structure Data Testing tool.
Regards
Hello,
Thanks for the reply.
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for contacting Rank Math today.
I’ve added the following snippet to your theme to remove the duplicate aggregaterating that was getting added to WooCommerce:
/** * Remove WooCommerce Product Schema markup for <code>aggregateRating</code>. */ function prefix_remove_woocommerce_aggregate_rating_markup( $markup, $product ) { unset( $markup['aggregateRating'] ); return $markup; } // IMPORTANT: Should run before SEO plugin WooCommerce filter with priority = 10 add_filter( 'woocommerce_structured_data_product', 'prefix_remove_woocommerce_aggregate_rating_markup', 5, 2 );
Please check and let me know if this is working as expected.
Looking forward to helping you. Thank you.
Hello:
I just did flush complete website cache and then checked the Google structure data for the urls mentioned in sensitive data. The error still persists.
Regards
HI Peeyoosh,
Thanks for the reply.
I am not sure why this seems to work for some products and not others. I am consulting our dev team about this and we will get back to you in a short while.
We appreciate your patience. Thank you.
Hi peeyoosh,
I am afraid the aggregateRating field is not added by Rank Math so our assistance is going to be limited on this one.
You are using Judge.me reviews and that’s where the error is coming from.
If you click on the
itemReviewed
error, you will be taken to line 809 where the Judge.me code is present.Have you tried asking the Judge.me team for assistance?
So, what is the solution at the end of the day for RankMath & Judge.me to work together if I may ask?
I’ve been looking for the solution for almost 2 months already
Thanks for your help
Judge me team resolved the issue at their end itself. They enabled some soft setting which fixed the error in Google search console.
Do you mean it’s part of an update or?
What do you mean by soft update?
Just send them an email from your registered account and mention the issue. They would fix it on their end on their server side.
Hello,
Thank you for contacting Rank Math today.
I am glad that this has been resolved from Judge.me end.
Looking forward to helping you. Thank you.
The ticket ‘Review snippets Missing field ‘itemReviewed’’ is closed to new replies.