• Hi Paul
    I am having a problem with getting the schema settings to work.

    This is the shortcode I am using: https://prntscr.com/k6or3i
    [site_reviews rating="1" count="20" pagination="true" category="plymouth" id="jemcwrf4" schema=true schema_type="Dentist" schema_name="SpaDental Plymouth" schema_url="https://www.spadental.co.uk/plymouth/" schema_image="https://www.spadental.co.uk/wp-content/themes/spa-dental-xml/images/banner-plymouth.jpg" schema_address="2 Hyde Park Road, Mutley, Plymouth, Devon, PL3 4RJ" schema_telephone="01752 663870" schema_pricerange="NHS, DenPlan and Private"]

    on testing with:
    https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fwww.spadental.co.uk%2Fplymouth%2Freviews%2F

    I am getting the following errors/warnings:
    image : A value for the image field is required.
    warningaddress : The address field is recommended. Please provide a value if available.
    warningpriceRange : The priceRange field is recommended. Please provide a value if available.
    warningtelephone : The telephone field is recommended. Please provide a value if available.

    See: https://prntscr.com/k6oqcn

    What is wrong in the Shortcode settings?
    (using ver 1.8)

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Christopher Hilling

    (@chilling)

    PS. Can I pass the schema properties as above or do I have to do it via the Hook?

    $schemaType = ‘LocalBusiness’;
    add_filter( “site-reviews/schema/{$schemaType}”, function( array $schema, array $args ) {
    // do something here.
    return $schema;
    }, 10, 2 );

    Plugin Author Gemini Labs

    (@geminilabs)

    You cannot pass individual schema values to the shortcode. You can do this via the Custom Fields metabox only.

    If you are using a custom schema type, you will need to use the provided hook to add additional schema values as shown here: https://github.com/geminilabs/site-reviews/wiki/How-to-add-additional-values-to-Site-Reviews-JSON-LD-schema

    Plugin Author Gemini Labs

    (@geminilabs)

    What is wrong in the Shortcode settings?
    (using ver 1.8)

    Is there a reason you are using v1.8 instead of v2.16.1?

    Thread Starter Christopher Hilling

    (@chilling)

    My mistake, picked up the version number from the wrong Plugin ??
    I am using v2.16.1

    Thread Starter Christopher Hilling

    (@chilling)

    Paul the full schema for each of our locations is below which is currently generated in the footer.
    What we are not including are the individual reviews on the location page which lists the reviews.

    How would you suggest is the best way to add the individual reviews for each location which are listed, for instance here:
    [ redundant link removed ]

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Dentist",
      "name": "SpaDental Plymouth",
      "alternateName": "Hyde Park Dentist",
      "branchCode": "P0081",
      "address": [{
    	"@type": "PostalAddress",
    	"streetAddress": "2 Hyde Park Road, Mutley",
    	"addressLocality": "Plymouth",
    	"addressRegion": "Devon",
    	"postalCode": "PL3 4RJ",
    	"addressCountry": "UK"
    	},
    	{
    	"@type": "PostalAddress",
    	"streetAddress": "6 The Calvert Center",
    	"addressLocality": "Woodmancott",
    	"addressRegion": "Hampshire",
    	"postalCode": "SO21 3BN",
    	"addressCountry": "UK"
    	}
    	],
      "telephone": "01752 663870",
      "faxNumber": "01752 252797",
      "email": "[email protected]",
      "legalname": "SpaDental Plymouth LLP",
      "leiCode": "OC318418",
      "parentOrganization": {
    	"@type" : "Organization",
    	"name": "SpaDental Group",
    	"address": {
    		"@type": "PostalAddress",
    		"streetAddress": "6 The Calvert Center",
    		"addressLocality": "Woodmancott",
    		"addressRegion": "Hampshire",
    		"postalCode": "SO21 3BN",
    		"addressCountry": "UK"
    		},
    	"telephone": "0845 539 0849",
    	"email": "[email protected]",
    	"legalname": "SpaDental Holdings LTD",
    	"leiCode": "06258024",
    	"url" : "https://www.spadental.co.uk"
    	},	
      "geo": [{
    		"@type": "GeoCoordinates",
    		"latitude": 50.3844584,
    		"longitude": -4.1347017
    		},
    		{
    		"@type":  "GeoCircle",
    		"geoMidpoint": {
    			"@type": "GeoCoordinates",
    			"latitude": "50.3844584",
    			"longitude": "-4.1347017"
    			},
    		"geoRadius": "10000"
    		}],
      "url": "https://www.spadental.co.uk/plymouth/",
      "sameAs": ["https://www.facebook.com/SpaDentalPlymouth/",  	
    	"https://www.instagram.com/spadentalplymouth/",
    	"https://twitter.com/SpaDPlymouth",
    	"https://www.google.com/search?q=SpaDental%20Plymouth",
    	"https://www.google.com/maps/place/SpaDental+Plymouth/@50.38448,-4.1368357,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x8dd1087e7577a32a!8m2!3d50.38448!4d-4.134647?hl=en",
    	"https://search.google.com/local/writereview?placeid=ChIJTS_oQszsbEgRKqN3dX4I0Y0 ",
    	"https://plus.google.com/107620802786043714280?hl=en",
    	"https://www.linkedin.com/company/2344384/",
    	"https://www.cqc.org.uk/location/1-2162264910/contact",
    	"https://www.nhs.uk/Services/dentists/MapsAndDirections/DefaultView.aspx?id=24226",
    	"https://beta.companieshouse.gov.uk/company/OC318418"
    	],
      "logo": "https://www.spadental.co.uk/wp-content/themes/spa-dental-xml/images/logo-plymouth.jpg",
      "image":"https://www.spadental.co.uk/wp-content/themes/spa-dental-xml/images/banner-plymouth.jpg",
      "currenciesAccepted": "GBP",
      "isAcceptingNewPatients": "True",
      "medicalSpecialty": "Dentistry",
      "openingHoursSpecification": [
    	{
    	  "@type": "OpeningHoursSpecification",
    	  "dayOfWeek": [
    		"Monday",
    		"Tuesday"
    	  ],
    	  "opens": "08:00",
    	  "closes": "20:00"
    	},
    	{
    	  "@type": "OpeningHoursSpecification",
    	  "dayOfWeek": [
    		"Wednesday",
    		"Thursday",
    		"Friday"
    	  ],
    	  "opens": "08:00",
    	  "closes": "17:30"
    	},
    	{
    	  "@type": "OpeningHoursSpecification",
    	  "dayOfWeek": "Saturday",
    	  "opens": "08:00",
    	  "closes": "14:00"
    	}
      ],
    	"aggregateRating": {
    	"@type": "AggregateRating",
    	"ratingValue": "4.7",
    	"bestRating": "5",
    	"worstRating": "1",
    	"ratingCount": "403"
      },
      "event": {
    	"@type": "ChildrensEvent",
    	"location": {
    		"type": "Place",
    		"name": "SpaDental Plymouth",
    		"address": {
    			"@type": "PostalAddress",
    			"streetAddress": "6 The Calvert Center",
    			"addressLocality": "Woodmancott",
    			"addressRegion": "Hampshire",
    			"postalCode": "SO21 3BN",
    			"addressCountry": "UK"
    			}
    		  },
    	"about": "Children\'s Dentisty",
    	"name": "Children\'s Day",
    	"performer" : { 
    		"@type" : "Organization",
    		"name" : "SpaDental Plymouth Team",
    		"sameAs" : "https://www.spadental.co.uk/plymouth/team/" },
    	"description": "Book your childs examination now! Call 01752 663870. You do not need to be registered with the practice to book an appointment for your child. We are supporting two Government campaigns, \'Dental Check by 1\' and \'Starting Well\', which are encouraging access to NHS dental care for babies, children and teens. #NCDUK2018 They are a fun and informative way for the whole family to find out about how to look after your teeth and oral health. If you know that your child is due for their dental examination contact the practice on 01752 663870 or email [email protected] to arrange your appointment. Please also tell your friends and family of this event so that they may too benefit from this great opportunity.",
    	"image": "https://scontent.xx.fbcdn.net/v/t1.0-0/p180x540/21432830_740064799513937_4789769581232143386_n.jpg?oh=335a8eafcd58122b0fe75ad8d700d3f9&oe=5B43863C",
    	"startDate": "2018-07-31",
    	"endDate": "2018-07-31",
    	"offers": {
    	   "@type": "Offer",
    		"price": "0.01",
    		"priceCurrency": "GBP",
    		"availability" : "https://schema.org/LimitedAvailability",
    		"validFrom": "2018-07-31",
    		"validThrough": "2018-07-31",
    		"url": "https://www.spadental.co.uk/whitchurch/treatment/childrens-dentistry/"
    		}
    	},
      "paymentAccepted": "Cash, All major credit cards",
      "priceRange": "NHS, Private and DenPlan options"
    }
    </script> 
    		<script type="application/ld+json">
    	{
    		"@context": "https://schema.org",
    		"@type": "WebSite",
    		"url": "https://www.spadental.co.uk/plymouth/",
    		"potentialAction": [{
    			"@type": "SearchAction",
    			"target": "https://query.spadental.co.uk/plymouth/search?q={search_term_string}",
    			"query-input": "required name=search_term_string"
    			},{
    			"@type": "SearchAction",
    			"target": "android-app://uk.co.spadental/https/query.spadental.co.uk/plymouth/search/?q={search_term_string}",
    			"query-input": "required name=search_term_string"
    			}]
    	}
    </script> 
    Thread Starter Christopher Hilling

    (@chilling)

    Paul I tried to write a post asking on how best incorporate the individual Site Reviews into our full schema for each location but the post has been held for moderation:

    This post has been held for moderation by our automated system and will be manually reviewed by a moderator.

    Therefore I have posted the full post to: CJCH Test Site Reviews

    Plugin Author Gemini Labs

    (@geminilabs)

    This schema does not look like it was generated by Site Reviews.

    This is what I would do:

    1. Add an @id attribute to your existing schema (you can use the URL):

    "@id": "https://www.spadental.co.uk/plymouth/",
    

    2. Add the same @id to the Site Reviews schema:

    /**
     * @return array
     */
    add_filter( "site-reviews/schema/Dentist", function( $schema ) {
        $schema['@id'] = $schema['url'];
        return $schema;
    });

    3. Use: [site_reviews schema=true]

    • This reply was modified 6 years, 4 months ago by Gemini Labs.
    Thread Starter Christopher Hilling

    (@chilling)

    OK thanks, will look at that next weekend.
    In the meantime, I will mark this as resolved.

    Thanks as always for your support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘LocalBusiness schema setting not applied’ is closed to new replies.