
內容簡介
Auto-Social Meta Tags ASMT83 是一款外掛,它會在 WordPress 網站的文章、頁面和其他部分上自動添加社交媒體元標籤,使用現有的特徵(例如摘要、標籤和特色圖片)。
如何工作?
此外掛會在頁面和文章的 head 區塊添加 meta 標籤。
如果頁面或文章有特色圖片,它會添加以下標籤。如果沒有,這些標籤則不會添加。
– LINK image_src
– META twitter:image
– META og:image
如果頁面或文章有摘要,它會添加以下標籤。如果沒有,它會取用網站的標語或關於頁面。
– META description
– META og:description
使用頁面或文章的標題會添加:
– META og:title
使用文章的標籤會添加以下標籤。如果沒有,標籤就不會添加。頁面沒有標籤。
– META keywords
為了添加類型標籤,需要在文章或頁面中自定義選項進行設置。如果選項不存在,它會添加值“article”。
– META og:type
– META twitter:card
使用文章或頁面的永久鏈接(URL)添加:
– META og:url
使用在這裡介紹的 Facebook 應用程式 ID 會添加:
– META fb:app_id
就是這樣。這是一款簡短的 meta 標籤外掛,但它能正常運作。
外掛標籤
開發者團隊
原文外掛簡介
Auto-Social Meta Tags ASMT83 Adds social meta tags automatically on posts, pages and other parts of a WordPress site by using existing characteristics, like the excerpt, tags and featured image.
How does it work?
This plugin adds meta tags to the head of pages and posts.
If the page or post has a featured image, it adds the following tags. If there is not, the tags are not added.
– LINK image_src
– META twitter:image
– META og:image
If the page or post has an excerpt, it adds the following tags. If there is not, it will take the blog’s tagline/about.
– META description
– META og:description
Using the page’s or post’s title adds:
– META og:title
Using the post’s tags adds the following. If there are none, the tag is not added. Pages do not have tags.
– META keywords
To add the type tags it needs a custom option in the post or page that you have to set. If the option is absent, it adds the value ‘article’.
– META og:type
– META twitter:card
Using the post or page’s permalink (URL) adds:
– META og:url
Using the Facebook App Id introduced here, it adds:
– META fb:app_id
That’s it. It is a short plugin for meta tags, but it does the work.
