Support » Plugin: Rate my Post - WP Rating System » How i managed to work with SoftwareApplication

  • Resolved Rafalor


    Hi there, Blaz, i just want to share how i make it work the 100% of the structure data with SoftwareApplication (and work’s for all other types).

    I’m using Rate My Post now only to collect the votes, the SEO i leave to the new plugin i’m using now (Rank Math).

    This plugin is more complete than Yoast SEO premium that was using, and it work’s really good for Schema Types, but in an odd way that you need to insert manually the votes like this:

    So what i done is to vinculate your plugin with Rank Math for that matter. And it is working greatly. Not only i do not need to insert the votes manually, but they get updated everytime one new vote is added from an user in the post.

    Have a look:

    This is the code that i puted in functions.php

     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;

    I also needed to deactivate some options in the Rate My Post pannel, like rich snipets and others that is now managed by the SEO Plugin.

    The only negative side is that i’m having to update all the posts to put the other data manually like operatingsystem, applicationcattegory and price, but that is no problem.

    I just wanted to share this here with you and with all other user’s that may need this.

    • This topic was modified 11 months, 3 weeks ago by Rafalor.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How i managed to work with SoftwareApplication’ is closed to new replies.