Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified

#271974
  • Resolved Razen Customs
    Rank Math free

    I got a mail from search console indicating this error from the product section

    Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified

    Can you please check and revert back

Viewing 3 replies - 1 through 3 (of 3 total)
  • Tammy
    Rank Math business

    Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Please read this page to learn more about why you’re having this problem: https://rankmath.com/kb/aggregate-rating-error/

    Please add the following code to your theme’s functions.php file to properly apply Judge.me’s aggregateRating to Rank Math’s product schema:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ){
        global $post;
        $entity['@id'] = get_the_permalink( $post );
        return $entity;
    });

    I hope this information is helpful, and please do not hesitate to contact us if you require any additional support.

    Thank you.

    Can you please elaborate where to add and how to add as i need to send to the developer

    Azib Yaqoob
    Rank Math business

    Hello,

    You can add the code mentioned by my colleague anywhere in the functions.php file. You can give this code to the developer and they will add it for you.

    Hope that helps. Please don’t hesitate to contact us again if you need further assistance.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified’ is closed to new replies.