There is a way to vinculate a rating plugin?

#20271
  • Resolved Anonymous
    Rank Math free

    Hi there, i have a rating plugin called “rate my post” so users can vote in posts

    There is any way i can vinculate this plugin to RankMath in order for me not need to put this data manually in every post?

    https://drive.google.com/file/d/1D6MpMRgNvBs9tildFngX27LafeMELIOA/view?usp=sharing

    I’m using SoftwareApplication and it is VERY strange to put that data manually acctually. That should be from actual votes from the users. That is the main point of that…

    • This topic was modified 5 years, 8 months ago by .
    • This topic was modified 5 years, 8 months ago by .
    • This topic was modified 5 years, 8 months ago by .
Viewing 10 replies - 1 through 10 (of 10 total)
  • Anonymous
    Rank Math free

    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/ ???

    • This reply was modified 5 years, 8 months ago by .
    • This reply was modified 5 years, 8 months ago by .
    • This reply was modified 5 years, 8 months ago by .

    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.

    Anonymous
    Rank Math free

    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.

    Anonymous
    Rank Math free

    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!

    • This reply was modified 5 years, 8 months ago by .
    • This reply was modified 5 years, 8 months ago by .

    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.

    Anonymous
    Rank Math free

    • This reply was modified 5 years, 7 months ago by Todd.
    • This reply was modified 5 years, 7 months ago by .

    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.

    ​​​​​​

    Anonymous
    Rank Math free

    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

    • This reply was modified 5 years, 7 months ago by .

    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.