[WordPress] 外掛分享: Twitter Cards

前言介紹

  • 這款 WordPress 外掛「Twitter Cards」是 2012-06-16 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2013-04-03,距離現在已有 4414 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.3 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

niallkennedy |

外掛標籤

twitter | twitter cards | semantic markup |

內容簡介

通過在每個文章中包含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. “” )

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Twitter Cards」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | trunk |

延伸相關外掛(你可能也想知道)

  • JM Twitter Cards 》啟用外掛後,它將在您的 WordPress 網站上添加適當的 meta,使您可以根據設置為您的文章獲得 Twitter 卡片。享受吧!, 功能, , Gutenberg 兼容,設有自定義側...。

文章
Filter
Apply Filters
Mastodon