目次
プラグインの概要
構造化データ定義ボキャブラリのschema.orgをJSON-LD(JSON for Linking Ddata)シンタックスで、WordPressの投稿や固定ページなどに構造化マークアップを出力するプラグインです。
またWordPressのテーマ上に表示するパンくずリスト(BreadcrumbList)をショートコードで出力することができます。
Markup (JSON-LD) structured in schema.org Download Site:
https://wordpress.org/plugins/wp-structuring-markup/
対応しているschema.org
- Article: http://schema.org/Article
- BlogPosting: http://schema.org/BlogPosting
- BreadcrumbList: https://schema.org/BreadcrumbList
- Event: https://schema.org/Event
- LocalBusiness : http://schema.org/LocalBusiness
- NewsArticle: http://schema.org/NewsArticle
- Organization: https://schema.org/Organization
- Person: https://schema.org/Person
- SiteNavigation: https://schema.org/SiteNavigationElement
- Speakable: https://pending.schema.org/speakable
- Video: https://schema.org/Video
- Website: https://schema.org/WebSite
拡張機能
パンくずリスト(BreadcrumbList)
構造化マークアップの出力とともに、WordPressのテーマ上に表示するパンくずリストをショートコードで出力することができます。(パンくずリストの出力のみも可能です)
if ( shortcode_exists( 'wp-structuring-markup-breadcrumb' ) ) {
echo do_shortcode( '[wp-structuring-markup-breadcrumb]' );
}
パンくずリストとして出力されるol要素にオプションでid属性とclass属性を追加することができます。
if ( shortcode_exists( 'wp-structuring-markup-breadcrumb' ) ) {
echo do_shortcode( '[wp-structuring-markup-breadcrumb id="id-name" class="class-name"]' );
}
HTMLは以下のように出力されます。スタイルはお好みで設定してください。
<ol id="id-name" class="class-name">
<li>aaaaaaaaaa</li>
<li>bbbbbbbbbb</li>
<li>cccccccccc</li>
</ol>
最近のコメント