Integration with

  • Hello

    I use for collecting and showing reviews on my product pages. This tool also has the ability to create structured data for my products. However, it seems that Rankmath does not add @id to the snippets. Without an @id cannot link the json-ld snippet to the product page snippet.

    I contacted Rankmath on Facebook about this and they proposed to add this to functions.php . than proposed to replace the “ID_here” with “{{json product.url}}”. Unfortunately, this still doesn’t give the results, the markup is not picked up by Google structured data testing tool.

    Can Rankmath please look into this and provide a viable solution?


Viewing 15 replies - 1 through 15 (of 20 total)
  • Hi There,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Kindly allow me to consult the dev team on this and then I’ll get back to you.

    Looking forward to helping you. Thank you.


    Hi Michael

    Thanks! Looking forward to a solution from your devs! 🙂


    Sorry about the delayed response. Are you seeing any schema errors on your website? Can we see a URL where you are seeing errors?

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    Temporary Login Without Password

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    WP Security Audit Log

    We really look forward to helping you.


    I prefer not to use the forum for this. Is there a way to contact you through email regarding this?

    Hi Gilles,

    Thanks for getting back to us.

    The sensitive data section is very secure and only our support team is able to access it.
    If you are still worried about your site security, please send an email to">

    We are looking forward to your response. Thank you.


    I have updated the sensitive data as requested. Can you please check further?

    Thank you.


    Added the data


    In which file, did you add the code? I don’t see it in the functions.php file. Also, please give us a link to the page where you get the errors?

    Looking forward to helping you. Thank you.


    I removed it because it was not working. One version of the code also gave server errrors. If you have a good workaround, please let me know.

    Hi Gilles,

    Please share the code that you added and let us know where exactly you added it so we can help you better.


    I mentioned this in the opening post and I added this to functions.php (removed by now because it was not working):

    “I contacted Rankmath on Facebook about this and they proposed to add this to functions.php . than proposed to replace the “ID_here” with “{{json product.url}}”. “


    I get Access denied error when I try to add the code in functions.php file from Theme Editor or from the WP File Manager. Please add some temporary FTP access in the Sensitive Data Section or try adding the below code in your theme’s functions.php file:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        global $post;
        $entity['@id'] = get_the_permalink( $post );
        return $entity;

    I hope that helps. Thank you.


    Thank you, going to try that. This is the only code that should be added then? No other changes to be made?


    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 20 total)

The ticket ‘Integration with’ is closed to new replies.