Skip to content

Instantly share code, notes, and snippets.

Honing my JSON+LD Structured Data Skills

Denver Prophit Jr. inetbiz

Honing my JSON+LD Structured Data Skills
Block or report user

Report or block inetbiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
inetbiz / rv-camphost.json
Last active Nov 15, 2019
JSON+LD structured data for an RV Campground
View rv-camphost.json
"name": "RV One Campground",
"image": { "@id": "#img" },
"photos":[ "", "" ],
"telephone":"+1 111 222-3333",
"url": "",
inetbiz / functions.php
Created Aug 14, 2019
WordPress Function: Number of Words in Post Content
View functions.php
function post_word_count() {
$count = 0;
$posts = get_posts( array(
'numberposts' => -1,
'post_type' => array( 'post', 'page' )
foreach( $posts as $post ) {
$count += str_word_count( strip_tags( get_post_field( 'post_content', $post->ID )));
$num = number_format_i18n( $count );
inetbiz / attorney.txt
Created Aug 13, 2019
Jekyll AUthor Social Profiles via nested data yaml
View attorney.txt
birth_country: "United States of America"
birth_city: "Paso Robles"
birth_region: CA
birth_zip: 93446
education: "Southeastern University: B.A. History – 2008, University of Florida Levin College of Law: Juris Doctor – 2011"
first_name: attorney
last_name: One
honorary: Esq
nationality: "United States of America"
inetbiz / post.html
Last active Mar 31, 2019
Jekyll Article JSON+LD
View post.html
layout: default
<script type="application/ld+json">
"@context": "",
"@type": "Article",
"url": "{{ site.url }}{{ page.url }}",
"name": "{{ page.title | jsonify }}",
"headline": "{{ page.title | jsonify }}",
View collection-page.html
<script type="application/ld+json">
"@context": "",
"@type": "CollectionPage",
"name": "Page Title",
"url": "URL of Page",
"description": "Meta Description",
"mainEntity": {
"@type": "ItemList",
"itemListElement": [
View Endo-Stock-Report-Exporter.php
* Plugin Name: Endo Stock Report Exporter
* Plugin URI:
* Description: A custom stock report exporter plugin for WooCommerce
* Version: 1.0.0
* Author: Endo Creative
* Author URI:
* License: GPL2
inetbiz / .htaccess
Last active Sep 1, 2017
WordPress XMLRPC Whitelisting
View .htaccess
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
allow from
allow from
allow from
allow from
allow from
allow from
allow from
inetbiz / social-figure.html
Last active Jun 21, 2017
social schema markup on a figure
View social-figure.html
<figure itemid="" itemscope itemtype="">
<link itemtype="headline" itemref="#headline" />
<img src="..." itemprop="image" />
<blockquote cite="">
<h3 itemprop="headline">Leaked new BMW 2 series (m235i) ahead of oct 25 reveal</h3>
<p>Date posted: March 4, 2014 <meta itemprop="datePublished" content="2014-03-04" /></p>
<span itemprop="author" itemscope itemtype="">
<span itemprop="name">
<a itemprop="url" href="">Ryan Sammy</a></span>
inetbiz / article.json
Created Mar 7, 2017
Schema Article with Comments [ Work in Progress ]
View article.json
"@context": "",
"@type": "Article",
"author": "John Doe",
"interactionStatistic": [
"@type": "InteractionCounter",
"interactionService": {
"@type": "Website",
"name": "Twitter",
View offer-schema.html
<div itemscope itemtype="">
<span itemprop="name">Kenmore White 17" Microwave</span>
<img itemprop="image" src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
<div itemprop="aggregateRating"
itemscope itemtype="">
Rated <span itemprop="ratingValue">3.5</span>/5
based on <span itemprop="reviewCount">11</span> customer reviews
<div itemprop="offers" itemscope itemtype="">
<!--price is 1000, a number, with locale-specific thousands separator
You can’t perform that action at this time.