Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Could you please add the following to the functions.php and let us know if it resolves the issue:
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.
Hi, I have added it. But Im not sure whether it still works.
Hello,
It seems the id is being integrated into the breadcrumbs. Please use the following and remove the code previously added:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
if ( isset( $data['richSnippet'] ) && 'Product' === $data['richSnippet']['@type'] ) {
$data['richSnippet']['@id'] = get_the_permalink( $post );
}
}, 99, 2);
Hope this helps you.
I have tried that. Can you check now? It still doesn’t seem to show the aggregate rating which is being added by Judge.me
Hi,
If that doesn’t work, we might need to take a closer look at the settings. Please 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,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.