內容簡介
通過在每個文章中包含Twitter Card HTML 元素,可以在 Twitter.com 和 Twitter 客戶端上生成內嵌內容預覽。
所有的卡片默認都是 Twitter Card 摘要。利用 twitter_card_properties 過濾器參考您的網站或作者的 Twitter 帳戶。
通過Twitter 的卡片預覽工具測試您的網站的 Twitter Card 顯示效果。
過濾器
twitter_cards_properties - 在輸出到頁面之前對內容的數組執行操作
twitter_cards_htmlxml - 使用xml覆蓋html的預設處理方式。 XML將自動關閉元素( “” vs. “” )
外掛標籤
開發者團隊
原文外掛簡介
Generate inline content previews on Twitter.com and Twitter clients by including Twitter Card HTML meta elements for individual posts.
All cards are a Twitter Card summary by default. Tap into the twitter_card_properties filter to reference the Twitter accounts of your site or author.
Test your site’s Twitter Card display through Twitter’s card preview tool.
Filters
twitter_cards_properties – act on an array of properties before they are output to the page
twitter_cards_htmlxml – override the default treatment of html with xml. XML will self-close the meta void element ( “” vs. “” )
