[WordPress] 外掛分享: WP Hashed IDs

首頁外掛目錄 › WP Hashed IDs
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
3532 天前
最後更新
問題解決
WordPress 3.0+ v2.0 上架:2012-10-13

內容簡介

這個外掛程式新增了一個新的永久鏈結標籤 %hashed_id%,代表您文章 ID 的加密版本。
使用 hashids library(請參閱 http://www.hashids.org/php/)。

透過這個外掛程式,您可以將永久鏈結結構更改成像這樣:

/%hashed_id%/

以獲得以下類似的鏈結:

http://www.example.com/B7j1rPk8

或像這樣:

/%year%/%monthnum%/%hashed_id%/

以獲得以下類似的網址:

http://www.example.com/2012/10/B7j1rPk8

或像這樣:

/%hashed_id%/%postname%/

以獲得以下類似的網址:

http://www.example.com/B7j1rPk8/my-slug

當您想要隱藏文章數量時,或者只是想要一個獨特和簡潔的 URL 結構時,這個外掛程式很有用。如果您想要短網址而不使用第三方服務,這也很有用。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Hashed IDs」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin adds a new permalink tag %hashed_id% which represents the encrypted
version of your post ID.
Uses hashids library (see http://www.hashids.org/php/).
With this plugin you can change your permalink structure into something like
/%hashed_id%/

to obtain links like
http://www.example.com/B7j1rPk8

or into something like
/%year%/%monthnum%/%hashed_id%/

to obtain URLs like
http://www.example.com/2012/10/B7j1rPk8

or
/%hashed_id%/%postname%/

to obtain
http://www.example.com/B7j1rPk8/my-slug

This plugin is useful when you want to obfuscate the number of posts or simply
if you want an unusual and concise url schema. This is also useful if you want to have
short URLs without using a third-party service.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon