前言介紹
- 這款 WordPress 外掛「LH OGP Meta」是 2015-09-16 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2017-12-01,距離現在已有 2711 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0. 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ogp | open graph | facebook meta | open graph meta | facebook open graph |
內容簡介
這個外掛可以為您的網站添加精確的 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屬性
自動產生描述或添加自定義描述
原文外掛簡介
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「LH OGP Meta」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Open Graph, Google Plus/Schema.org, Twitter Card Tags for WordPress 》這個外掛讓您能夠插入:, , Facebook 開放圖形 Meta 標籤,有效地分享至 Facebook, Twitter 卡片標籤,有效地分享至 Twitter, Meta 描述和 Schema.org 標籤,...。