-
Hi there, i was using this custom code to vinculate the ratemypost plugin with rank rich snipet software application so the plugin could collect the votes from the users.
This was the code that it was given to me here: https://support.rankmath.com/ticket/there-is-how-to-vinculate-rating-plugin/
‘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;
});’After i updated the rankmath plugin today, this code stoped working and the strucutre data is a mess now, like it can be seen here: https://search.google.com/structured-data/testing-tool?hl=pt-BR#url=https%3A%2F%2Fwww.baixesoft.com%2Fdownload%2Ffoxit-reader
Please can you provide some other custom code that can work again?
Thank’s?
You must be logged in to reply to this ticket.