Skip to content

Instantly share code, notes, and snippets.

@henshaw
Last active August 10, 2025 16:53
Show Gist options
  • Save henshaw/b0096b725e1bdeaa7455348c31359873 to your computer and use it in GitHub Desktop.
Save henshaw/b0096b725e1bdeaa7455348c31359873 to your computer and use it in GitHub Desktop.
ReportageNewsArticle Schema.org for WordPress single.php
{
"@context": "http://schema.org",
"@type": "ReportageNewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<?php the_permalink(); ?>",
"publisher":{
"@type":"NewsMediaOrganization",
"name":"Your Site Name",
"ethicsPolicy":"https://www.yourdomain.com/policies-and-standards/",
"missionCoveragePrioritiesPolicy":"https://www.yourdomain.com/policies-and-standards/",
"diversityPolicy":"https://www.yourdomain.com/policies-and-standards/",
"correctionsPolicy":"https://www.yourdomain.com/policies-and-standards/",
"verificationFactCheckingPolicy":"https://www.yourdomain.com/policies-and-standards/",
"unnamedSourcesPolicy":"https://www.washingtonpost.com/policies-and-standards/",
"actionableFeedbackPolicy":"https://www.yourdomain.com/policies-and-standards/",
"logo": {
"@type": "ImageObject",
"url": "https://yourdomain.com/logo.png",
"width": "600",
"height": "60"
}
},
"breadcrumb": {
"@type": "BreadcrumbList",
"itemListElement":
[
{
"@type": "ListItem",
"position": 1,
"item":
{
"@id": "https://www.yourdomain.com",
"name": "Your Site Name"
}
}, {
"@type": "ListItem",
"position": 2,
"item":
{
"@id": "<?php echo $cat_link ?>",
"name": "<?php echo get_the_category( $id )[0]->name; ?>"
}
}, {
"@type": "ListItem",
"position": 3,
"item":
{
"@id": "<?php the_permalink(); ?>",
"name": "<?php the_title(); ?>"
}
}
]
}
},
"headline": "<?php the_title(); ?>",
"description": "<?php echo get_the_excerpt(); ?>",
"datePublished": "<?php the_time('c'); ?>",
"dateModified": "<?php the_modified_time('c'); ?>",
"author": {
"@type": "Person",
"name": "<?php the_author(); ?>",
"url":"<?php echo get_the_author_meta('user_url'); ?>"
},
"publisher": {
"@type": "Organization",
"name": "Your Company Name",
"url": "https://yourdomain.com",
"address": {
"@type": "PostalAddress",
"addressCountry": "USA",
"addressLocality": "Your City",
"addressRegion": "Your State Initials",
"postalCode": "Your Postal Code",
"streetAddress": "Your Street Address",
"email": "[email protected]",
"telephone": "+16155551234"
},
"founder": {
"@type": "Person",
"email": "[email protected]",
"familyName": "Your Last Name",
"givenName": "Your First Name",
"jobTitle": "Your Title"
},
"logo": {
"@type": "ImageObject",
"url": "https://yourdomain.com/logo.png",
"width": "600",
"height": "60"
},
"sameAs":
[
"https://www.facebook.com/yourusername/",
"https://www.instagram.com/yourusername/",
"https://www.linkedin.com/company/yourusername/",
"https://twitter.com/yourusername"
]
},
"image": {
"@type": "ImageObject",
"url": "<?php if ( has_post_thumbnail() ) { the_post_thumbnail_url( 'full' ); } else { ?><?php bloginfo('template_directory'); ?>/images/fallback-image.png<?php } ?>",
"height": "600",
"width": "1200"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment