• Resolved rezwiebel

    (@rezwiebel)


    Hi, on my website I have implemented schema.org/recipe manually in the single.php. Now I have added rate my post plugin to add the rating functionality. Unfortunately now the site has 2 markups for schema.org. One I added myself and one your plugin adds via json. So far not a big problem for Google, but on pinterest the scraper only finds your schema.org markup which misses all other /recipe fields that are needed. Is there any way to add the aggregaterating fields inside my own markup in single.php?

Viewing 1 replies (of 1 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @rezwiebel,

    You can retrieve the vote count and average rating for each post with the following functions:

    rmp_get_avg_rating( $postID )
    rmp_get_vote_count( $postID )

    This should be enough to add the aggregaterating fields inside your own markup. More in the documentation.

    Regards,
    Blaz

Viewing 1 replies (of 1 total)
  • The topic ‘Additional markup’ is closed to new replies.