Problem for Rich Snippet (Product)

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello,

    Thank you for contacting the support.

    1. You need to set priceValidUntil value in the WooCommerce itself.
    WC >> Products >> Products Data >> General >> Sale Price Date

    2. For adding the brand, please add the following code in your theme’s functions.php file:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math';
    return $entity;

    3.4 Review Schema: You need to show the reviews from WooCommerce and
    same goes for the aggregateRating value.

    Hope that helps.

    Hey, sorry some other issues:
    I need to have “offers”, “review” or “aggregateRating” for google.
    And Product-ID, image and sku is missing as well.

    The Brand is missing, but the code above will do it.

    Thanks for this awesome plugin. Love it.

    Hi Dirk,

    Those are automatically picked from your product information. Please add that via WooCommerce so Rank Math can pull that data and make it schema friendly.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Can this plugin work with Schema Pro?


    Yes, you need to turn off the Rich Snippets module in the Rank Math plugin to use any other rich snippet plugin.

    Hope that helps. If you have any further question(s), please let us know. Thank you.


    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.

    after installing this plugin, there was an error on my search console like this:
    Either “offers”, “review”, or “aggregateRating” should be specified

    I think perhaps there was no review on my products such error occurred so I tried to post some review on a single product and test result.
    so now I get this error on Google Structured Data Testing Tool:
    One of offers or review or aggregateRating should be provided.

    and also this one below each review for the specified product:
    Multiple reviews should be accompanied by an aggregate rating.

    hope to help me to fix the problem.
    FYI this is my product URL :تابلو-کنتور-برق-پنج-واحد-تکفاز-و-یک-واحد

    thanks in advance


    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.

    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 easily as well:

    To fix the brand warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.

    Brand Value

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math;
    return $entity;

    Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Dear Michael
    As I make a deeper look it seems that the plug-in doesn’t pick some information for related or similar products.
    As you know there are some similar or related products which are shown on a single product page and the problem is that even though they have review and SKU, but these properties aren’t picked when the product is listed as a related or similar product.
    So the main product has no error and just similar and related products are making errors.

    Thank you for your kind help


    Google Structured data testing tool throws warning for the missing fields in the isrelatedTo attribute but it’s a false positive. In isRelatedTo field only product name and URL of the related products are required. You can check this in the new Google Rich Snippet testing tool:

    Still, if you want to remove the isRelatedTo then please add the following code in your theme’s functions.php file:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	if ( isset( $entity['isRelatedTo'] ) ) {
    		unset( $entity['isRelatedTo'] );
    	return $entity;

    Hope that helps. If there is anything else, please let us know.

    Thank you.


    unfortunately, still there is the problem with my products. and also on my main shop page witch have 7 products and for all of them this error appears on google live testing URL :
    Either “offers”, “review”, or “aggregateRating” should be specified.
    So sorry for my late response.
    thank you for considering and kind support.

    For example: single product page

    As you could see there are some reviews on this product but it still has the error.
    If needed I could provide more details too.


    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.
    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:

    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):

    We really look forward to helping you.

    I also have issue of schema mark up. I have two kind of results in google console. One shows 1 error, and other result shows 5 warnings. Why this happening ?

    Screenshot is attached.

    How to skip global identifier markup ?


    Thank you for contacting Rank Math and sorry for the delay.

    Unfortunately your last response got stuck on our moderation queue and thus we could not get back to you sooner.
    I have inspected your page source and it looks like your theme is loading some addition schema that is causing the errors as shown below:

    Looking forward to helping you. Thank you.


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

You must be logged in to reply to this ticket.