SNIP: Structured Data & Schema Plugin for WordPress › Forums › Structured Data Help › Import JSON doesn’t seem to work
Tagged: import
- This topic has 1 reply, 2 voices, and was last updated 2 years, 11 months ago by Florian.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
December 17, 2021 at 8:48 am #3916arcaswebdesignParticipant
Attempting to use the “import” method to paste in and import a snippet of structured data that our SEO person has given us and when we import it process it, sets the right data type but then none of the other info appears anywhere (even when I click to expand the property list).
The snippet is:
{ "@context": "http://www.schema.org", "@type": "Organisation", "additionalType": ["http://www.productontology.org/id/Exercise_equipment"], "name": "Pinnacle Fitness", "legalName": "Pinnacle Fitness", "url": "https://www.pinnaclefitness.org.uk/", "logo": "https://www.pinnaclefitness.org.uk/images/pinnacle-fitness-logo-1463129803.jpg", "image": "https://www.pinnaclefitness.org.uk/media/com_eshop/products/resized/183229208720a-cr-275x275.jpg", "description": "Pinnacle Fitness is a company based in Kirkliston, outside Edinburgh which sells used and refurbished gym equipment. The company also does gym equipment hire, gym relocation, gym equipment buy backs, gym equipment servicing and repair, gym installation services. It was established in 2015 and has a warehouse which houses all the used and second hand fitness equipment. ", "telephone": "+44131 319 2096", "openingHours": "Mo-Fr 09:00-17:00; Sat 10.30am-15:00", "foundingDate": "2015", "founders": { "@type": "Person", "name": "William Kirkpatrick" }, "priceRange": "££", "address": { "@type": "PostalAddress", "streetAddress": "Unit 2, Royal Elizabeth Yard, Kirkliston", "addressLocality": "Edinburgh", "addressRegion": "Midlothian", "postalCode": "EH29 9EN", "addressCountry": "United Kingdom" }, "contactPoint": { "@type": "ContactPoint", "telephone": "+44131 319 2096", "email": "[email protected]", "contactType": "customer support", "availableLanguage": "English", "areaServed": ["Edinburgh", "Glasgow", "Fife", "Perth", "Stirling", "Lothian"] }, "geo": { "@type": "GeoCoordinates", "latitude": "55.972783", "longitude": "-3.379400" }, "sameAs": [ "https://twitter.com/PinnacleFitnes5", "https://www.facebook.com/pinnaclefitness1", "https://www.linkedin.com/company/pinnacle-fitness-uk/", "https://www.crunchbase.com/organization/pinnacle-fitness", "https://www.pinterest.co.uk/pinnaclefitness1/", "https://find-and-update.company-information.service.gov.uk/company/SC630140", "https://www.wikidata.org/wiki/Q109733618" ] }
December 17, 2021 at 8:59 am #3921FlorianKeymasterHey there,
and thanks for your comment on the forums.Maybe you can try this:
{ "id": "snip-global-breadcrumbs-posts", "context": "http://schema.org", "type": "BreadcrumbList", "itemListElement-prop-5c63f68381ee5": { "0": "http://schema.org/ListItem", "1": { "id": "snip-5c641556a573b", "context": "http://schema.org", "type": "ListItem", "name-prop-5c64155761709": { "0": "term_title", "1": null, "overridable": false, "overridable_multiple": false }, "position-prop-5c6415576a168": { "0": "textfield_sequential_number", "1": "breadcrumbs_posts", "overridable": false, "overridable_multiple": false }, "item-prop-5c64155778310": { "0": "term_url", "1": null, "overridable": false, "overridable_multiple": false }, "loop": "taxonomy_category" }, "overridable": false, "overridable_multiple": false }, "itemListElement-prop-5c6404b73450b": { "0": "http://schema.org/ListItem", "1": { "id": "snip-5c6404be55fb9", "context": "http://schema.org", "type": "ListItem", "name-prop-5c6404be5f27d": { "0": "current_post_title", "1": null, "overridable": false, "overridable_multiple": false }, "position-prop-5c6404be6c368": { "0": "textfield_sequential_number", "1": "breadcrumbs_posts", "overridable": false, "overridable_multiple": false }, "item-prop-5c6404be79508": { "0": "current_post_url", "1": null, "overridable": false, "overridable_multiple": false } }, "overridable": false, "overridable_multiple": false }, "@id-prop-5e425e11ac690": { "0": "textfield", "1": "#breadcrumbs", "overridable": false, "overridable_multiple": false }, "_is_export": true, "@ruleset": [ [ { "param": "post_type", "operator": "==", "value": "post" } ] ] }
It seems that the importer has a problem when the @context-attribute has a prepending www. The above should work as it should be.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.