Duplicate google search recipe entry with “WP Rating System by FeedbackWP”

#740358
  • Resolved Anonymous
    Rank Math free

    Hi dear rank mth support,

    I have a problem completing the ‘recipe schema’ that I use because I want to include the elements Aggregate rating”.
    To do that I tried a plugin that seems to do the job, with a good user interface for visitors :
    FeedbackWP – WP Rating System by FeedbackWP

    Unfortunately the result was errors in my google search console with 2 recipe schemas (I don’t kwow how to send you iamges). I saw that the post page contains 2 different json, son I image that is the problem ?

    Can you help me to fix this problem?
    Thank you very much for your help !!!

    sample :
    “@context”: “http://schema.org”, “@type”: “Recipe”, “aggregateRating”: { “@type”: “AggregateRating”, “bestRating”: “5”, “ratingCount”: “1”, “ratingValue”: “1” }, “image”: “https://dev.pianoetmandoline.com/wp-content/uploads/2023/09/muffins-banane-et-beurre-de-cacahuetes.jpeg”, “name”: “Muffins à la banane et au beurre de cacahuete”, “description”: “Muffins à la banane et au beurre de cacahuete”}
    problem found in the google search console

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

    I apologize for the issue you are facing with the duplicate Google Search recipe entry and errors in your Google Search Console related to the “Aggregate rating” in the Recipe Schema.

    To resolve this problem, you mentioned using the “FeedbackWP – WP Rating System by FeedbackWP” plugin to include the Aggregate Rating. The presence of two different JSON structures on your post page could indeed be causing the issue.

    To fix this problem, you need to ensure that only one valid Recipe Schema with the Aggregate Rating is present on your post page. You should remove any duplicate or conflicting Schema markup.

    Here are the steps you can follow to resolve this:

    1. Check your post page for any conflicting Schema markup added by plugins or themes.
    2. Ensure that only one valid Recipe Schema with the Aggregate Rating is present.
    3. Remove any duplicate or conflicting Schema markup to avoid errors in Google Search Console.

    If you need further assistance or if you encounter any difficulties while fixing this issue, please reply to this ticket, and a human agent from the Rank Math Support team will assist you promptly.

    Thank you for reaching out for help!

    Sources:
    Recipe Schema Type » Rank Math
    How to Fix Aggregate Rating Error » Rank Math
    Google Search Console Missing Field Warning » Rank Math
    Using Review Schema Type to Earn Star Ratings » Rank Math

    Hello,

    Thank you for your patience.

    To add the reviews of the plugin you are using to Rank Math’s Recipe Schema, you would need to gather them directly from the database and import them via code to your website.

    Here’s an example we gave to one user using a different plugin:

    add_filter( 'rank_math/snippet/rich_snippet_recipe_entity', function( $entity ) {
        $stampedDBData = get_post_meta(get_queried_object_id(), 'stamped_io_product_reviews_new', true);
    
        if( isset($stampedDBData) && $stampedDBData['count'] > 0 ) {
            $entity['aggregateRating']['@type'] = "AggregateRating";
            $entity['aggregateRating']['ratingValue'] = $stampedDBData['rating'];
            $entity['aggregateRating']['ratingCount'] = $stampedDBData['count'];
        }
    
        return $entity;
    });

    You can get in touch with FeedbackWP support and ask them to help you modify the code.

    Hope that helps.

    Anonymous
    Rank Math free

    Yess!!! Thank you so much for your answer ! With your advice ans the widget documentation I manage to change the aggregaterating in your schema. I think it will be a good improvement to add the user rating feature in your plugin 🙂

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Duplicate google search recipe entry with “WP Rating System by FeedbackWP”’ is closed to new replies.