-
Hi there, i’m using a custom solution for Rich Snipets using both Rank Math and a plugin to get the ratings from the users, Rate My Post.
I get the help for the vinculation here: https://support.rankmath.com/ticket/there-is-how-to-vinculate-rating-plugin/
I’m using this code
add_filter( 'rank_math/snippet/rich_snippet_software_entity', function( $entity ) { $entity['aggregateRating'] = [ '@type' => 'AggregateRating', 'ratingValue' => rmp_get_avg_rating(), 'bestRating' => '5', 'worstRating' => '1', 'ratingCount' => rmp_get_vote_count(), ]; return $entity; });
It was all working fine like you can see here: https://search.google.com/structured-data/testing-tool?hl=pt-BR#url=https%3A%2F%2Fwww.baixesoft.com%2Fdownload%2Fdrivers-da-impressora-multifuncional-canon-mg2410
… but then, as you can see here in Google rich result tests (https://search.google.com/test/rich-results?id=BdqqzY8peIilcwP0kujOnA) i’m having a problem about some AggregateRating duplicity.
This may not be the appropriate forum for this, but any help will be appreciated.
Thank’s.
You must be logged in to reply to this ticket.