內容簡介
這個外掛程式新增了一個新的永久鏈結標籤 %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 結構時,這個外掛程式很有用。如果您想要短網址而不使用第三方服務,這也很有用。
外掛標籤
開發者團隊
原文外掛簡介
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.
