WPSSO JSON provides extensive support for hundreds of Schema types, and pulls content from dozens of supported 3rd party plugins. Many Schema properties can also be customized in the Social and Search Optimization metabox (Pro version required), and the [schema] shortcode can be used to define additional properties and types for sections of your content. Please note that the [schema] shortcode is meant for advanced users and is not required for most content — WPSSO JSON creates complete and accurate Schema markup for most content automatically. ;-)

Before using the [schema] shortcode in your content, please make sure the SSO > Advanced > Plugin Settings > Enable Plugin Shortcode(s) option is enabled, or the shortcode will be ignored. ;-)

The [schema] shortcode can be used to define additional properties for the content. The following example defines an 'articleSection' property for the Schema Article type. Note that all shortcode attributes are considered to be Schema property names, except for the 'prop' and 'type' attribute names, which have special meaning (see bellow).

[schema articleSection="Sports" /]

The [schema] shortcode can also be used to define a Schema type for a section of content, along with using that section of content for the Schema type description and its media properties. The following example defines a section of content as a Schema Map type. Please note that the 'type' value can be a WPSSO Schema type ID (as shown here) or a complete https://schema.org URL. When using the 'type' shortcode attribute, the 'prop' shortcode attribute is required (so the Schema type can be assigned to a Schema property). WPSSO JSON will automatically detect and include the example image in the Schema Map content.

[schema prop="hasPart" type="map" name="Map of the World"]

        Here's a nice detailed map of the world.

        [caption id="attachment_1" align="alignnone" width="600"]

                <img src="http://example.com/wp-content/uploads/worldmap.jpg"
                        alt="A nice world map." width="600" height="600" 
                        class="size-featured wp-image-1" data-wp-pid="1"
                        nopin="nopin" />

                A nice world map.

        [/caption]

[/schema]

Please note that WordPress is not currently able to parse nested shortcodes, so the following shortcode structure is not supported by WordPress.

[schema]
        [schema]
        [/schema]
[/schema]

The WPSSO JSON extension on the other hand does support nested shortcodes, but a numeric extension must be used to work around the WordPress limitation. WPSSO JSON supports up to 3 levels of nesting (by default), as the following example illustrates.

[schema]
        [schema_1]
                [schema_2]
                        [schema_3]
                        [/schema_3]
                [/schema_2]
        [/schema_1]
[/schema]