[WordPress] 外掛分享: LH OGP Meta

首頁外掛目錄 › LH OGP Meta
WordPress 外掛 LH OGP Meta 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
50+
安裝啟用
★★★★★
5/5 分(1 則評價)
3030 天前
最後更新
問題解決
WordPress 3.0.+ v1.73 上架:2015-09-16

內容簡介

這個外掛可以為您的網站添加精確的 Open Graph Meta 標籤和 Facebook 專屬的 meta 標籤。此外掛的設置和選項都非常簡潔,不會干擾您的操作,同時還可以為您提供靈活的內容分享選項,而不像其他外掛那樣佔用過多資源。

圖片處理

如果文章頁面或自訂文章類型是單一的,首先它會在文章編輯頁面的圖片中查找 OGP 圖片。然後它將尋找特色圖片。如果都找不到,那麼它將默認使用網站圖標圖片(通常在"外觀 - > 自訂"中設定)。如果還是找不到,那就會失敗,而無法顯示圖片。

描述處理

插件會從三個地方查找 Open Graph 描述。

側邊欄中的 OGP 描述
如果上述未指定,則會嘗試使用文章摘要。
如果上述都未指定,則會使用文章內容(刪除無效標籤)。

測試您的網站

啟用外掛後,請前往 Facebook 的測試工具,將其中一個文章/頁面的 URL 或主頁面粘貼到該工具中,以查看 Facebook 正在提取的信息。此工具位於https://developers.facebook.com/tools/debug。

更多信息請參閱我們的文檔。

此專案的所有問題都在GitHub上跟踪。

特色:

選擇特定文章圖片進行分享
處理 Facebook 專屬的 meta,如fb:admins和fb:app_id
將不同的使用者映射到不同的article:author屬性
自動產生描述或添加自定義描述

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.73) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「LH OGP Meta」→ 直接安裝(推薦)

原文外掛簡介

This plugin adds accurate Open Graph Meta tags and the Facebook specific meta tags to your site. The idea is to keep minimal settings and options as to remain out of your way and in the background while still proving the options you need to share content flexibly. Without the bloat of some other plugins.
Image Handling
if the post page or CPT is singular it firstly look for the OGP image specified on the post edit screen image. It will then look for the featured image. If that isn’t there either, then it will default to using the site icon image (usually set under Appearance->Customiser. If THAT isn’t there then… well you fail and you won’t have an image.
Description Handling
The plugin looks in three places for an Open Graph description.

The OGP description in the sidebar
if the above is not specified it will try to use the post excerpt.
If the above aren’t specified it will use the post content (stripped of invalid tags).

Testing Your Site
Once you’ve enabled the plugin head over to Facebook’s testing tool and paste in one of your post/page url’s or your home page to see what info Facebook is pulling in. This tool is located here: https://developers.facebook.com/tools/debug
Check out our documentation for more information.
All tickets for the project are being tracked on GitHub.
Features:

Select a post image specifically for sharing
Handles Facebook specific meta like fb:admins and fb:app_id
maps different users to different article:author properties
Automatic generation of the description or add a custom description

延伸相關外掛

文章
Filter
Apply Filters
Mastodon