How to Add new seperate values to schema ?
-
Hello,
I have just started using your plugin, so far i’m realy glad with what is offering !
That been said, there is one thing that i would like to perform which is to add new values(fields) to the schema for the “AggregateRating”.
I have checked the documentation and i found this:
add_filter(‘site-reviews/schema/LocalBusiness’, function ($schema) {
$schema[‘address’] = [
‘@type’ => ‘PostalAddress’,
‘streetAddress’ => ‘123 Main St’,
‘addressLocality’ => ‘City’,
‘addressRegion’ => ‘State’,
‘postalCode’ => ‘Zip’,
];
return $schema;Unfortunately this adds the address and within it other values. What i would like to have is if possible, seperate values just like “name”,”url”, etc.. parent values instead of nested ones inside address ?
Any help would be much appreciated !
Thank you in advance
- The topic ‘How to Add new seperate values to schema ?’ is closed to new replies.