• Hi @dudo,

    I’ve just installed AMP plugin, and the JSON-LD output from your plugin was being stripped out. Since the AMP plugin render its own JSON-LD inside the head section, I think I need to add the visitor votes values from your plugin to the head section too.

    Please advise how to call this visitor votes values from other plugin script:
    “ratingValue” => “$average_rating”,
    “ratingCount” => $visitor_rating[‘votes_number’]

    Thanks in advance…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello, thank you for using Yasr!

    1) be sure that in the settings, at the question ” Which rich snippet do you want to use? ” you selected Aggregate Rating

    Then just use this code where you want to make appear the schema:

    $content=FALSE;
    echo yasr_add_schema($content);

    I didn’t tested, but should work.

    Best,
    Dario

    Thread Starter Malvyn

    (@insee77)

    Hi Dario,

    Thanks for your advise ?? I will try it..

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘YASR with AMP’ is closed to new replies.