-
Hi,
When I fill the recipe schema, I need to add the “review location”. It doesn’t matter if I set it to shortcode or below content, even if I use the shortcode, RankMath instead of adding only the stars to rate, it adds the whole content again, which is means I have the content duplicated, first in a good formated way and the second in an awful RankMath formated way (in any case duplicated and senseless).
-
and one more post I found complaining about the same and still you are not solving it:
https://support.rankmath.com/ticket/rich-snippet-data-shwoing-under-my-recipe-post/the solution is not to add that extra line in functions.php, the solution is for you to display only the ratings, not to duplicate the whole content.
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We offer these shortcodes for people that don’t want to write everything twice, so they write the content in the Schema, and then the shortcode outputs everything on the page in an unformatted way that people can tackle with CSS.
The intention of the shortcode is not to only display the rating, it’s to display the entire Schema as is true with any shortcode for Schema.
If that workflow doesn’t suit your needs and instead you prefer to add the content and then the Schema then you might need to use the other options to display the review rating instead of using the shortcode.
Unfortunately, having a shortcode only to display the star ratings seems like a regression of plugin functionality and not something that should be considered at the moment.
Don’t hesitate to get in touch if you have any other questions.
how should I use css for the content not to be duplicated and, what’s the sense of having the content duplicated in the same page?
Hello,
The content is only duplicated if you add the shortcode on the page which you don’t need to do to have compliant Schema on your pages.
As long as you add the Schema in our Schema Generator with all the information that’s more than enough to have Rich Results on your website and the purpose of the shortcode was already explained earlier.
We don’t provide custom CSS for styling particular components on a website so you’ll need to create those rules yourself if you want to continue adding the shortcode on the page.
Don’t hesitate to get in touch if you have any other questions.
as mentioned already in the 3 other posts from other people, if I don’t add the shortcode, google search console complains about agregatedRating
Hello,
The shortcode will not affect your Schema validation with Google in any way. The
aggregateRatingwarning shows up when you don’t have user reviews on your recipe article. You can simply ignore this warning or can use a third-party plugin to add user ratings and Rank Math will use those reviews in the Schema data.Hope this helps. Let us know if you need any other assistance.
Thanks.
“You can simply ignore this warning or can use a third-party plugin to add user ratings and Rank Math will use those reviews in the Schema data.”
How should I add in html / js those reviews for Rank Math to use them? I’ve tried and it’s not working.
Hello,
Can you please confirm if you are using a plugin to get the user reviews for your products? If yes then you can get in touch with your plugin’s developers and provide them the following filter to map the reviews with the Schema: https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data
Let us know how that goes. Looking forward to your update.
Thanks.
I’m not using any plugin, only yours and Elementor
Hello,
If you are not using any other plugin and still want to show the ratings you will need to either add them manually with the same values of the Schema or hide the content that you don’t want to be displayed with CSS rules.
However, hiding the content might not be an ideal solution as Google will still be able to see the source code and discover the entries for that.
Even if you don’t add the rating on your page visible, SERPs will still be able to see the Schema markup with those values. The values on the page are just for viewing pleasure and nothing more.
Don’t hesitate to get in touch if you have any other questions.
It’s not really for viewing pleasure only as google asks that you have to allow users to rate the page
Hello,
There seems to be some confusion here, as our shortcode doesn’t allow the users to add reviews about that page. The shortcode simply allows you to add the ratings that you already have set in the Schema showing on the page.
Google doesn’t mention that the users should be able to rate the Recipe directly on the page. https://developers.google.com/search/docs/advanced/structured-data/recipe
If you want to add the option to let your users review the recipes you need to have a plugin that allows that and that it can output the same information in structured Schema markup so that Google can pick up the values from that.
Don’t hesitate to get in touch if you have any other questions.
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.
The ticket ‘Schema recipe duplicates content’ is closed to new replies.