• Resolved hellorahulbronco

    (@hellorahulbronco)


    Hi Team – We are building a Business Directory website using Elementor and Schema Pro. We wish to integrate Site Reviews and use Schema Pro for generating Local Business Schema.

    Schema Pro allows mapping rating fields with available fields. We need 2 fields, Avg rating and total votes. PFA the screenshot for your reference: https://imgur.com/Eu7D6hh

    Which 2 variables (or custom fields) will allow us to do that. Any suggestion on this will be extremely helpful.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You cannot map a key for the average rating since Site Reviews calculates the average rating on the fly. However, if you are using Schema Pro, all you have to do is add an @id property to the Site Reviews schema using the provided filter hook, and make sure that it matches the @id property of the Schema Pro schema and this will link the two schemas together.

    For example:

    add_filter('site-reviews/schema/LocalBusiness', function ($schema) {
        $schema['@id'] = ''; // add the ID property here
        return $schema;
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Integrate with Schema Pro’ is closed to new replies.