[WordPress] 外掛分享: Slug for attached posts by image galleries

前言介紹

  • 這款 WordPress 外掛「Slug for attached posts by image galleries」是 2011-03-16 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2011-03-17,距離現在已有 5162 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.5 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

clapas |

外掛標籤

seo | slug | friendly URL |

內容簡介

Slug4apig (Slug for attached posts from image galleries) 可能是有史以來最簡單的外掛之一,但它對 WordPress 社群來說是必需的。

這個外掛只是為 WordPress 內建的圖庫介面中插入的每個圖像增加一個欄位。就像您輕鬆編輯每個圖像的名稱、說明等一樣,使用 Slug4apig,您可以編輯「友好的 URL」(又稱為 slug)並設置所需的值。

預設情況下,WordPress 內建的圖庫會將附件文章的 slug 設置為您在圖庫中插入的圖像的名稱(減去擴展名)。這是一種相當受限制的方式,因為您的圖像可能會由相機自動分配連續的名稱,例如「S4100001.JPG」。

在前面的例子中,假設您使用自動創建的附件文章,那麼這個文章的 URL 將如下:

http://example.com/2011/03/post-title/S4100001/

而在 Google 等搜索引擎上搜索時將會以 「S4100001」作為頁面標題,對搜索引擎使用者、機器人和 SEO 活動來說是沒有意義的。假設這個圖像是來自一輛自行車,您可能會希望 URL 更有意義,例如:

http://example.com/2011/03/post-title/bike/

這樣更符合 SEO 規範。沒有什麼神奇的,您只需將附件文章的名稱設置為您選擇的名稱即可取代預設的名稱。

請記得使用 slug 名稱來驗證有效的、未保留的字符集。在 URI 中被允許但沒有保留目的的字符稱為未保留字符。這些字符包括大寫和小寫字母、十進制數字、連字號、句點、底線和波浪號。

未來的增強功能

Slug 名稱驗證
批次作業支援

原文外掛簡介

Slug4apig (Slug for attached posts from image galleries) is probably the simplest plugin ever seen, though of
imperative need for the WordPress community.
This plugin just adds a field to each image inserted through the WordPress built-in gallery interface. As easy as you edit
the name, description, etc. for each image, with Slug4apig you will be able to edit the friendly URL (aka slug)
and set the desired value.
By default, the WordPress built-in gallery will set the attachment post’s slug to the name of the image you inserted in
the gallery (minus .extension). This is a rather restrictive approach, as your images may have sequencial names
assigned automatically by the photo camera, like “S4100001.JPG”.
In the previous example, an autocreated attachment post would be created under the hypothetical URL:
http://example.com/2011/03/post-title/S4100001/

and a search on, i.e. Google, will show “S4100001” as the title for the page, which is senseless for the search
engine users, robots, and SEO activities in general. Suppose the image is from a bike; then you will like the URL
to be relevant, like:
http://example.com/2011/03/post-title/bike/

wich is SEO friendly. There is no magic, you just set the attachment post name to overwrite the default with the name
of your choice!
Remember to use valid, unreserved characters for the slug. Characters that are allowed in an URI but do not have a
reserved purpose are called unreserved. These include uppercase and lowercase letters, decimal digits, hyphen, period,
underscore, and tilde.
Future enhancements

Slug name validation
Batch jobs support

各版本下載點

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

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


最新版本

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

  • Remove CPT base 》從網址中移除自訂文章類型基本標誌, , 可以選擇特定的自訂文章類型, 自動重新導向舊的基本標誌到無基礎標誌, 。
  • Remove Taxonomy Base Slug 》如果您想要對您的自訂文章類型文章使用更好的固定連結,並使用自訂的固定連結,這個外掛程序可以協助您。, 如果該術語的slug和文章類型相同,那麼該分類的優...。
  • Wenprise Pinyin Slug 》這個 WordPress 外掛可以自動將中文文章別名、分類項目別名和圖片文件名轉換為漢語拼音或英文翻譯。, 外掛的主要功能, , 將文章別名轉換為拼音或英文翻譯,支...。
  • Admin Slug Column 》這個外掛會在「所有文章」和「所有頁面」的 wp-admin 界面上新增一欄,顯示每一個文章或頁面的 URL 路徑和別名。如果某個頁面是某個父頁面的子頁面,也會顯示...。
  • WP Author Slug 》這個外掛會以使用者顯示名稱的已消毒版本來替換作者標誌。, 這個外掛無法防止駭客找到你的登錄名稱,但登錄名稱不會顯示在作者檔案的 URL 中,並且可以使用顯...。
  • Remove slug from custom post type 》在 WordPress 2.9 中引入了自定義文章類型,為許多 WordPress 開發人員打開了新世界。, 當涉及到移除 slug 並且不破壞其他文章類型的重寫規則時,這款外掛表...。
  • LONG URL MAKER 》將您的網址變得更長, 功能, , 使得您可以為文章、頁面、產品(Woocommerce)、分類和標籤設置更長的名稱而不會引起錯誤, 當有重複的名稱時,此插件可自動添加...。
  • SF Author Url Control 》使用此外掛,管理員可以更改已註冊使用者的預設作家基礎網址和每個使用者的作家標記。, 更改作家標記對於安全性來說是好事(如果您的登錄名稱是“ This Is Me”...。
  • Remove Taxonomy Url 》永久連結(Permalinks),如其名,是指指向網站頁面、文章、分類或標籤的永久連結,讓訪客和搜尋引擎更容易地瀏覽您的網站。, 您有多少次因為 URL 看起來古怪...。
  • German Slugs 》注意:如果網站語言為德文,最近版本的 WordPress 已經能夠正確轉換韻律短音。在這種情況下,就不需要安裝 German Slugs 了。, 在創建帖子或頁面時,WordPres...。
  • Automatically Update Permalinks 》當啟用此外掛時,若一篇文章或頁面的標題更動了,permalink (slug) 將會自動更新以符合新標題。儲存時有一個選項可以暫時禁用此功能。, 如果您喜歡這個外掛,...。
  • Slug or PostID 》此外掛使用Slug或PostID來作為文章名稱,並且此功能是自動進行的。, 其他內容, 如果您想要使用其他應用程式(例如「Windows Live Writer」)發布文章,您必須...。
  • Remove Taxonomy Slug 》這個外掛可以讓您擁有乾淨的 SEO 友善網址。您可以透過幾個點擊來移除分類法(taxonomy)別名並取得 SEO 友善的網址。, 此外掛可以透過進入外掛設定來移除自...。
  • Custom Post Type 》此插件可建立自訂文章類型。。
  • WP Slug Post Type Custom Language (Polylang) 》描述, 將自訂文章類型內部 URL (Slug) 更改為系統所需的語言。, 利用 Polylang 或 WordPress 系統中的想要的語言連結,將內部 URL (Slug) 更改為自訂文章類型...。

文章
Filter
Apply Filters
Mastodon