內容目錄
內容簡介
這個微數據插入縮略語工具可避免 WordPress 內建的 TinyMCE 內容編輯器在你從代碼文字視圖切換到視覺化視圖時刪除微數據。
ES: Esta herramienta shortcode para inserción de microdatos evita que el editor de contenidos TinyMCE incorporado en WordPress elimine los microdatos cuando cambias la vista del contenido del post de vista de código a vista visual.
你應該閱讀 Changelog 和其他備註選項卡
範例
可用的小部件:
SimpleSchema區域業務模式
SimpleSchema 區域業務服務模式(接受服務和所涵蓋的區域)。
縮略語範例:
自 1.2 版開始:
使用 [meta_geo_coordinates] 的範例
[meta_geo_coordinates lat="39.321123" lon="0.654987" /]
會返回
<div itemscope="" itemprop="geo" itemtype="http://schema.org/GeoCoordinates">
<meta itemprop="lat" content="39.321123">
<meta itemprop="lon" content="0.654987">
</div>
使用 [meta_blog_posting] 的範例
[meta_blog_posting /]
會返回
<div itemscope="" itemtype="http://schema.org/blogPosting">
<meta itemprop="headline" content="$the_post_title">
<meta itemprop="datePublished" content="$the_post_date_Y_m_d">
<meta itemprop="image" content="$the_post_thumbnail_image_url">
</div>
自1.1版開始:
範例1:[keywords][/keywords]
[keywords]Cars[/keywords]
會返回:
<strong itemprop="keywords">Cars</strong>
範例2:[keywords tag=”HTMLtag“][/keywords]
[keywords tag=h2]Cars[/keywords]
會返回:
<h2 itemprop="keywords">Cars</h2>
範例3:[itemprop][/itemprop]
[itemprop name="name"]LocalBusiness Name[/itemprop]
會返回:
<meta itemprop="name" content="LocalBusiness Name"/>
範例4:[itemprop tag=”HTMLtag“][/itemprop]
[itemprop name="name" tag="h1"]LocalBusiness Name[/itemprop]
會返回:
<h1 itemprop="name">LocalBusiness Name</h1>
範例5:[itemscope itemprop=”Its itemprop, if needed” itemtype=”Its schema name“][/itemscope]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Cars[/keywords][/itemprop][/itemscope]
會返回:
<h1 itemprop="name">LocalBusiness Name</h1>
完整範例:父 itemscope 包裹 itemscope 子節點
[itemscope itemtype="LocalBusiness" tag="div" start /]
[itemprop name="name" tag="h1"][keywords]LocalBusiness Name[/keywords][/itemprop]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Cars[/keywords][/itemprop][/itemscope]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Motorcycles[/keywords][/itemprop][/itemscope]
Email: <a href="mailto:[email protected]">[itemprop name="email" tag="em"]
外掛標籤
開發者團隊
原文外掛簡介
EN: This microdata insertion shortcode tool prevents the WordPress built-in TinyMCE content editor removing microdata when you change post content editor view from code text to visual.
ES: Esta herramienta shortcode para inserción de microdatos evita que el editor de contenidos TinyMCE incorporado en WordPress elimine los microdatos cuando cambias la vista del contenido del post de vista de código a vista visual.
You should read Changelog and Other notes tabs.
Examples
Widgets availables:
SimpleSchema LocalBusiness Schema.
SimpleSchema LocalBusiness Services Schema (admits Services and Areas served).
Shortcode examples:
Since version 1.2:
Example with [meta_geo_coordinates]
[meta_geo_coordinates lat="39.321123" lon="0.654987" /]
will return
Example with [meta_blog_posting]
[meta_blog_posting /]
will return
Since version 1.1:
Example 1: [keywords][/keywords]
[keywords]Cars[/keywords]
will return:
Cars
Example 2: [keywords tag=”HTMLtag“][/keywords]
[keywords tag=h2]Cars[/keywords]
will return:
Cars
Example 3: [itemprop][/itemprop]
[itemprop name="name"]LocalBusiness Name[/itemprop]
will return:
Example 4: [itemprop tag=”HTMLtag“][/itemprop]
[itemprop name="name" tag="h1"]LocalBusiness Name[/itemprop]
will return:
LocalBusiness Name
Example 4: [itemscope itemprop=”Its itemprop, if needed” itemtype=”Its schema name“][/itemscope]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Cars[/keywords][/itemprop][/itemscope]
will return:
LocalBusiness Name
Complete example: parent itemscope wrapping itemscope childs
[itemscope itemtype="LocalBusiness" tag="div" start /]
[itemprop name="name" tag="h1"][keywords]LocalBusiness Name[/keywords][/itemprop]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Cars[/keywords][/itemprop][/itemscope]
[itemscope itemprop="owns" itemtype="Product"][itemprop name="name" tag="h2"][keywords]Motorcycles[/keywords][/itemprop][/itemscope]
Email: [itemprop name="email" tag="em"][email protected][/itemprop]
Telephone: [itemprop name="telephone" tag="strong"]+1-800-000-000[/itemprop]
[itemscope tag="div" end /]
or
[is itemtype="LocalBusiness" tag="div" start /]
[ip name="name" tag="h1"][keywords]LocalBusiness Name[/keywords][/ip]
[is itemprop="owns" itemtype="Product"][ip name="name" tag="h2"][kw]Cars[/kw][/ip][/is]
[is itemprop="owns" itemtype="Product"][ip name="name" tag="h2"][kw]Motorcycles[/kw][/ip][/is]
Email: [ip name="email" tag="em"][email protected][/ip]
Telephone: [ip name="telephone" tag="strong"]+1-800-000-000[/ip]
[is tag="div" end /]
will return:
