Star rating for an old video game site to play online

  • I want visitors to be able to rate the video games on my website and have the Rich Snippet. I also have the blog on video games, of which I speak of consoles, genres, series.

    Which Rich Snippet do I use? I currently have a plugin for the stars, but the author says he won’t have much support for the Rich Snippet.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Well, write me the text which I then copy and paste into their holder. They got confused with my words. I simply told them that I should follow the Rank Math process and they said “why do you write stuff about other plugins?”. and other answers confirmed that they don’t know what to do.


    Could you please confirm which review plugin are you getting in touch with?

    Meanwhile, here’s a text you can copy and paste:

    Hi, I wanted to integrate your plugin into Rank Math’s schema. Here’s a filter they have provided so you can pass the data to the aggregaterating property:

    Let us know how this goes.

    Thank you.

    Here’s what the star rating plugin support wrote to me.

    Still, that thread has nothing to do with my plugin. They gave you filters for their plugin, and that can’t and will not work with my plugin. If you create a function to add schema elements which are required for the snippet you choose, I can help you hook that into filter in my plugin, and that will depend on which base snippet type you want to use in my plugin. Let me know which snippet type in my plugin you will use, and I can give you the filter to use. But, you still need to create the code to add missing schema elements. I am not sure how much clearer I can make this.


    Please share the star rating plugin you are using so we can check as well.

    The filter should be added to your active theme’s functions.php file.

    Here’s a sample filter to pass the data from Rate My Post plugin (Product Schema):

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['aggregateRating'] = [
    	'@type'       => 'AggregateRating',
    	'ratingValue' => rmp_get_avg_rating(),
    	'bestRating'  => '5',
    	'worstRating' => '1',
    	'ratingCount' => rmp_get_vote_count(),
        return $entity;

    Looking forward to helping you.

    Thank you.

    I use the GD Rating System plugin.


    Please share the filter shared by my colleague with the devs of the GD Rating System plugin and ask them just to replace the rmp_get_avg_rating() and rmp_get_vote_count() functions with the relevant ones in their plugin to fetch the ratingValue (average rating) and the ratingCount (total number of ratings).

    This should give you the desired output.

    Hope that helps.

    Thank you.

    add_filter( 'gdrts_rich_snippet_jsonld_build_software_application', 'custom__gdrts_rich_snippet_jsonld_build_software_application', 10, 2 );
    function custom__gdrts_rich_snippet_jsonld_build_software_application( $snippet, $obj ) {
        // modify snippet array //    
        return $snippet;


    I can check that GD Rating System has an option to add its own Schema. You can use their Schema as that will have the reviews integrated into it:

    Please make sure to disable our Schema module from WP Dashboard > Rank Math > Dashboard if you decide to use their Schema.

    If you want to use Rank Math’s Schema, please ask the GD support how to get the rating data by the post ID so we can assist you further.

    Looking forward to helping you.

Viewing 8 replies - 16 through 23 (of 23 total)

You must be logged in to reply to this ticket.