• Resolved melonmusk1

    (@melonmusk1)


    Hi there,

    Love the plugin! Works like a charm, only issue I have, or rather Google, is with the reviewer name in rich snippets – it pushes it as null. Any idea on how to fix this? Thank you!

    Example:
    {“@type”:”Review”,”reviewRating”:{“@type”:”Rating”,”bestRating”:”5″,”ratingValue”:”5″,”worstRating”:”1″},”author”:{“@type”:”Person”,”name”:null},”reviewBody”:”Top 2 and not 2″,”datePublished”:”2021-09-16T01:00:00+02:00″},

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    Sorry for the late reply.
    I think there’s a conflict with other plugin.
    When I check the code that WooCommerce generates structured data, it uses get_comment_author() function to fill the name field https://snipboard.io/ZMJmzK.jpg and according to the WP codex, it cannot be null.
    Best regards

    Thread Starter melonmusk1

    (@melonmusk1)

    Hey pal,

    You’re right about the conflict. I’ve got custom PHP code that displays only the first name of the reviewer instead of (I think it was) username.

    Made adjustments to PHP, google now reads all names as static “Reviewer” – not perfect but google is happy with it and so am I

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google RichSnippets Reviewer Name Issue’ is closed to new replies.