Defines an “ASD Product” Custom Post Type in order to create Rich Content using JSON-LD Structured Data. Included are a grouping Taxonomy, and a shortcode with multiple templates.

The ASD Products plugin is useful for those who wish to define and populate the search engines with well-formed Product type Structured Data, without setting up a full e-commerce solution.

Rich Content

The primary function of the ASD Product Type is to generate Rich Content through the insertion of JSON-LD Structured Data into the HTML Footer for the Schema.org “Product” definition. Each ASD Product contains additional defined metadata such as Product Description, Rating, Image, etc.

Schema.org Product definition
Rich Content and Content Value
Google’s Intro to Structured Data
JSON-LD stands for ‘JSON for Linking data’

Shortcode

Included is a shortcode that allows Products to be inserted directly into other pages, using several provided templates, or a custom template that you define.

Featured Images

The ASD Product post type and shortcode templates support Featured Images.

Taxonomy

The “ASD Product Groups” taxonomy is included for grouping and managing ASD Products. The Taxonomy is visible in the ASD PRoduct list and can use used for filtering.

Additional Strutured Data

If the ASD FastBuild Widgets are also installed, additional JSON-LD fields will be included with the ASD Product, including the Seller properties, and its included properties. ASD FastBuild Widgets Another function of the ASD Product Type is to insert JSON-LD Structured Data into the HTML Footer for the Schema.org Product definition. Each ASD Product contains additional defined metadata such as Product Description, Rating, Image, etc.

If the ASD FastBuild Widgets are also installed, additional JSON-LD fields will be included with the ASD Product, including the Seller properties, and its included properties.

This Product Type does not include e-commerce Shopping Cart or Checkout functionality.

DOWNLOAD

ASD Products Plugin Download on WordPress.org’s plugin repository.

MORE

[asd_insert_products ids='123']
Inserts ASD Product with ID = 123.

[asd_insert_products ids='123,234']
Inserts ASD Products with IDs = 123 and 234

[asd_insert_products name='my-product-slug']
Inserts ASD Products with Slug (Name) my-product-slug

[asd_insert_products name='my-product-slug' template='my-product-template.php']
Inserts ASD Products with Slug (Name) my-product-slug and use a template named my-product-template.php



ASD Products List
Edit ASD Product
Results in Google Structured Data Testing Tool

1.201803152 2018-03-15
applied codesniffer phpcs with WordPress ruleset standard, zero errors, zero warnings remain

1.201803131 (Second RC) 2018-03-13
* Tweak Replaced clumsy and error-prone leading/trailing HTML class fields with single wrapper classes field, added code to sanitize and embed these classes into leading and trailing
tags
1.201803113 2018-03-11
* Tweak Elimination of all use of strcmp().
* Tweak Improvement in shortcode template heirarchy.
* Fix Removal of calls to load external HTML.
* Fix Improvements to readme.txt.
* Fix Elimination of double-quotes where possible.
* Tweak Added tags around the_post_thumbnail in shortcode banner template, aimed at get_the_permalink()

Upgrade Notice

1.201803131 2018-03-13
DOM classes must be copied from “leading_html” post meta field, and moved to “wrapperclasses” post meta field. I personally performed this task for the handful of sites which are currently running this plugin.

Leave a Reply