How to configure rich snippets

#41674
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. This means that you don’t need to set any other schema type except for product on this post type and the plugin will do the rest for you.

    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.

    All you products also need to have images to fix the “Missing image” error.

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

    That’s great!

    Many thanks for the easy to follow advice.

    How do I add a value to the priceValidUntil field?

    Hello,

    Thank you for contacting Rank Math today.

    You can add value by entering a sale price and then scheduling a sale date as shown below:
    Screensot

    Looking forward to helping you. Thank you.

    ​​​​​​

    • This reply was modified 4 years, 7 months ago by Michael Davis.

    Brilliant!

    Thanks 🙂

    Todd
    Rank Math free

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘How to configure rich snippets’ is closed to new replies.