Issue with Review & Aggregate Rating Missing

#1107604
  • Hello Rank Math Team,

    I am using Rank Math on my website, and I’ve noticed an issue with my product pages. My product pages have reviews, but when I check them in Google’s Rich Results Test, it shows that the review and aggregateRating fields are missing.

    Currently, my product pages are using the EDD Product Schema, so I am not sure why these fields are not being detected. Could you please guide me on how I can fix this issue and ensure that reviews and ratings appear correctly in rich results?

    Looking forward to your assistance.

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the review and aggregateRating fields on your product pages. It sounds like you’re encountering a common issue when using the EDD Product Schema.

    Here are some steps you can take to resolve this:

    1. Ensure You Have Reviews: Make sure that your product pages have actual reviews submitted by customers. Google requires these reviews to populate the aggregateRating and review fields. If there are no reviews, these fields will not be detected.

    2. Check Schema Settings: Since you are using EDD Product Schema, ensure that the schema is correctly set up. You can do this by navigating to your product page in the WordPress dashboard and checking the Rank Math settings for that specific product.

    3. Remove Product Schema from Categories: If you have applied Product Schema to category pages, it may cause issues. Ensure that the Product Schema is only used on single product pages. You can remove it from categories by going to Rank Math SEO → Titles & Meta → Product categories and enabling the Remove Snippet Data option.

      Remove Snippet Data

    4. Use Advanced Schema Builder: If you want to manually add or adjust the aggregateRating, you can use the Advanced Schema Builder available in Rank Math PRO. This allows you to customize the schema fields for your products.

    5. Code Snippet for Custom Ratings: If you have custom ratings stored in post meta, you can add a code snippet to include them in your schema. Here’s an example:

      add_filter('rank_math/snippet/rich_snippet_product_entity', function ($entity) {
         $score = get_post_meta(get_the_ID(), 'users_rating', true); // Replace with your rating post meta.
         $count = get_post_meta(get_the_ID(), 'users_rating_count', true); // Replace with your rating count post meta.
         $entity['aggregateRating'] = array(
             '@type'       => 'aggregateRating',
             'ratingValue' => $score,
             'ratingCount' => $count,
         );
         return $entity;
      });

      Make sure to replace users_rating and users_rating_count with your actual post meta keys.

    If you continue to experience issues after trying these steps, please reply to this ticket with your website URL so we can assist you further. Additionally, if you’re looking for a more comprehensive setup, consider our professional setup service at Rank Math Services, which requires a PRO subscription.

    Thank you for raising this concern, and we look forward to helping you resolve it!

    Sources:
    Google Search Console Missing Field Warning » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.