內容簡介
此外掛提供了兩個功能:全域化頁面、分類或標籤的永久連結結構以及個別永久連結。
在永久連結設定頁面中新增了選項,允許你指定頁面、分類、標籤和作者的結構。
如果啟用個別永久連結,預設頁面會以/page/ 或 /parent/page/ 的格式訪問。
你可以以多種不同的方式修改此格式,例如:
添加擴展:/%pagename%.html
添加父目錄名稱:/content/%pagename%/
前綴頁面名稱:/page-%pagename%/
或使用以上多種結合。
相同的格式適用於分類、標籤和作者,但結構標記不同:
分類: %category%(例如:/category/%category%.html)
標籤: %post_tag%(例如:/tag/%post_tag%.html)
作者: %author%(例如:/author/%author%.html)
每個永久連結基底都可以直接透過這些設定進行編輯,例如使用/people/%author%.html 作為作者永久連結結構,將會把/author/替換為/people/。
如果找不到前綴,永久連結將會加上預設值(分類、標籤或作者),唯一的例外就是頁面。
注意:請確定你已經在 URL 中包含了正確的結構標記。
此外,此外掛還新增了一個選項,允許你在編輯畫面中指定個別文章或頁面的永久連結。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin adds two areas of functionality: Global page, category or tag permalink structures and individual custom permalinks.
Options are added to the Permalinks Settings page allowing you to specify the structure for pages, categories, tags and authors.
By default – if custom permalinks are enabled – pages are accessible in the format /page/ or /parent/page/.
You can modify this format in many different ways, for example:
Add an extension: /%pagename%.html
Add a parent directory name: /content/%pagename%/
Prefix the page name: /page-%pagename%/
Or using a combination of the above.
This same format applies for categories, tags and authors, however the structure tokens differ:
Categories: %category% (E.g. /category/%category%.html)
Tags: %post_tag% (E.g. /tag/%post_tag%.html)
Authors: %author% (E.g. /author/%author%.html)
Each permalink base can be edited directly via these settings, for example using /people/%author%.html as the Author permalink structure will replace /author/ with /people/.
If no prefix is found, permalinks will be prepended with a default (category, tag or author) – with the exception of pages.
Note: Ensure you have included the correct structure tag somewhere in the url.
Additionally, an option is added to the edit screen allow you to specify the permalink for an individual post or page.
