Structured markup (Schema.org via JSON-LD)
There is more in other documents… Getting to know, and adding, JSON-LD to a WordPress site | Aaron T. Grogg
Google Rich Snippets = Schema.org
We absolutely require support for Google Rich Snippets. You can test your page for Structured Data with Google’s Testing Tool
Specific schema types?
WebPage is what I want, or?
!!! WordPress Theme Devs: Add Schema.org Markup To Your Themes - Tyler Longren !!! How to Add Schema.org Markup to WordPress for Better SEO Add Schema.org To Your WordPress Theme Add itemprop:image Microdata to WordPress Featured Image
The data, enclosed within the
<script type="application/ld+json"> ... </script> tags as shown in the examples below
may be placed in either the
<BODY> region of the page. Either way, it won’t affect how your document
appears in user’s web browsers.
The bible: Google Schemas Also very important: JSON-LD vs microdata Google Article Rich Snippets Guide Updated for AMP Structured Data on the Web
The best explained gude with a perfect example needed for us: Microdata, JSON-LD & Schema: Rich Snippets Guide
The rules for aggregate review
- Don’t add review stars to all pages at once, but add them gradually over time
- Don’t try to place them on your homepage
Is there any special support for AMP pages or not? It has to have, or not?
- JSON-LD for Article is discontinued but it was the simplest solution without any settings. There is more expanded fork wp-jsonld and it plays nicely with YASR review plugin.
WPSSO is huge behemoth, but it actually is not that bad if you also need social markup or even Social Sharing Buttons. There is a Pro version, but lots of extensions are free like:
- JSON-LD Markup should be included out of the box
- Social Buttons
- Strip Schema Microdata to remove outdated theme microdata.
Only when you dig deeper, you notice this message: The Free / Basic version of WPSSO JSON does not include support for the Schema type https://schema.org/Product. So no, it doesn’t support Product Schema Type in free version.
WP SEO Structured Data Schema is very straightforward and supports AggregateRating out of the box. Problem is that for now, there is no way to use it on custom post types. There is also no way to set any default values. Simple, small but too limited.
Schema / home / extensions Review. I like this plugin as it is simple, fast and straightforward. It doesn’t support AggregateRating (only reviewRating via free extension) and I have found no way to add Product schema type - schema types will be added in the future.
All In One Schema.org Rich Snippets supports is by far the most popular one, but it is used for presenting manually entered reviews on front-end, by using metabox in every post type. Supports AggregateRating, but it doesn’t support JSON-LD. It is not really what I need.
Markup (JSON-LD) structured in schema.org is simple, but there is no AggregateRating support
Google SEO Pressor for Rich snippets is not using JSON-LD, but old microformat.
WP Review Schema is not maintained anymore.
Use the right HTML5 tags for better HTML structure
Deciding on markup in tables with logos. In paragraph: Example 14.3 of this official resource draft: HTML5: Techniques for providing useful text alternatives, it is clearly stated to specify empty
spanjust to explain something, like:
If it is abbreviation, a shortened form of a word or phrase, use
<abbr title="Unknown Flying Object">UFO</abbr>
sectionis generic semantic element, just like
divwhen you need styling.
You must read:
To check the basic structure of a page (outline):
Doing it via PHP
How to Use Aggregate Review Schema to Get Stars in the Search Results for Local Businesses Code in this plugin is simplest as it can be.