Skip to content

Instantly share code, notes, and snippets.

<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"name" : "Article Title (to be changed)",
"author" : {
"@type" : "Person",
"name" : "Author Name (to be changed)"
},
"datePublished" : "2018-07-20",
<?php
$schema = get_post_meta(get_the_ID(), 'schema', true);
if(!empty($schema)) {
echo $schema;
}
?>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Product",
"name" : "PENCIL",
"image" : "https://example.com/pencil1.jpg",
"description" : "(Description about your product.)",
"url" : "https://example.com/pencil/",
"brand" : {
"@type" : "Brand",
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "Party Coffee Cake",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"author": {
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Jan Lieberman Concert Series: Journey in Jazz",
"startDate": "2025-01-01T19:30",
"endDate": "2025-01-01T23:00",
"location": {
"@type": "Place",
"name": "Santa Clara City Library, Central Park Library",
"address": {
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "LocalBusiness",
"name" : "Pen Company",
"image" : "https://yoursite.com/pen.png",
"telephone" : "012456789",
"email" : "example@example.com",
"address" : {
"@type" : "PostalAddress",
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Angry Birds",
"operatingSystem": "ANDROID",
"applicationCategory": "https://schema.org/GameApplication",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"name": "Roys Tavern",
"image": "https://example.com/photos/1x1/photo.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "900 Linton Blvd",
"addressLocality": "Delray Beach",
<script type="application/ld+json">
{ "@context": "https://schema.org",
"@type": "Organization",
"name": "Example Strategies",
"legalName" : "Example Strategies Llc",
"url": "http://www.example.com",
"logo": "http://example.com/logo.png",
"foundingDate": "2009",
"founders": [
{
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text": "INSERT ANSWER TEXT HERE"