Skip to content

Instantly share code, notes, and snippets.

{
"@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": {
<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",
<?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" : "Article",
"name" : "Article Title (to be changed)",
"author" : {
"@type" : "Person",
"name" : "Author Name (to be changed)"
},
"datePublished" : "2018-07-20",