There is a way to vinculate a rating plugin?

#20271
Viewing 10 replies - 1 through 10 (of 10 total)
  • That aggregateRating should not be putted manually. How search engine can trust that? It really need to be from user’s feedback. There is any way that can be done with any user rating plugin? Like this one https://wordpress.org/plugins/rate-my-post/ ???

    Hello,

    Thank you for contacting Rank Math today.

    There are 2 types of ratings: 1 is author rating and other is visitors ratings. In Rank Math, the schema data only supports the author’s ratings as we don’t provide any option on frontend for the user’s to add ratings. So that’s fine and Search engines trust that data.

    To integrate rate my post plugin ratings in Software schema, please use below filter code:

    
    add_filter( 'rank_math/snippet/rich_snippet_software_entity', function( $entity ) {
        $entity['aggregateRating'] = [
    	'@type'       => 'AggregateRating',
    	'ratingValue' => {THE_RATING_VALUE_FROM_WP_REVIEW_POST},
    	'bestRating'  => '',
    	'worstRating' => '',
    	'ratingCount' => {NUMBER_OF_USERS_WHO_RATED_THE_POST},
        ];
        return $entity;
    });
    

    Hope that helps. Thank you.

    Thank you, but where should i add that code? Into the plugin? Into the functions.php of the theme?

    Hi there,

    Thanks for the response.

    The code should be added on your theme’s functions.php file.

    I hope this info helps. Thank you.

    I made it functional!

    Is working 100% now! I made like this:

     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;
    });

    Is 100% functional! Thank you very VERY much!

    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/?rate=5#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.

    • This reply was modified 4 years, 4 months ago by Todd.
    • This reply was modified 4 years, 4 months ago by Rafael Lorenzoni.

    Hello,

    Thank you for contacting Rank Math today.

    You do not really need this code if you are already using the Rank Math rich snippets for the same post type. Adding two different rich snippets would cause a conflict.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Michael Davis, this last message was a bug from the forum. I did not sended nothing. Please close this topic. All is resolved here. Thank’s

    Hi Rafael,

    Thanks for the follow up and sorry for the glitch.

    I am glad that this is now resolved 🙂

    Don’t hesitate to contact us for any other questions, comments or suggestions. Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)

The ticket ‘There is a way to vinculate a rating plugin?’ is closed to new replies.