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:
- Check your post page for any conflicting Schema markup added by plugins or themes.
- Ensure that only one valid Recipe Schema with the Aggregate Rating is present.
- 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.
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.