Invalid Items Detected

#149425
  • Resolved James
    Rank Math free

    On an archive page an error of “invalid items detected” is being displayed. Looking at the error message it is product related with various attributes missing.

    Missing field ‘sku’ (optional)
    Missing field ‘image’ (optional)
    Missing field ‘brand’ (optional)
    Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified

    Is it possible to make these attributes appear on an archive page through Rank Math?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    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.

    James
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    James
    Rank Math free

    Thanks Anas. The product details contains:
    URL
    Description
    Product Name

    None of the other fields pull through onto the category page. I have checked the products on the page which all have SKU, brand and an image defined but yet they are not pulling through. Is there another setting I should be setting to make the attributes appear? Is this a Rank Math Pro feature?

    Hello,

    Thank you for following up.

    Since that page is a Category archive, the Schema needs to be disabled there. Please head over to Rank Math > Titles & Meta > Categories and enable the “Remove Snippet Data”:
    https://i.rankmath.com/utOHUl

    If you’re not seeing that option, make sure your Rank Math is set to Advanced Mode in Rank Math > Dashboard:
    Easy to Advanced Mode

    Google recommends disabling the schema to your product category archives and the product Schema is only for the actual product and not for anything else. You can check this link for more information:
    https://developers.google.com/search/docs/data-types/product#guidelines

    I hope that helps. Thank you, and please don’t hesitate to contact us 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Invalid Items Detected’ is closed to new replies.