不記得從哪個版本開始用wordpress的了
安裝好之後一直在後臺一個一個看
只是在後臺看到permalink的選項
然後看到幾個可以選擇的固定連接方式
不過剛剛開始的時候我沒有動這個選項
雖然對於默認連接的方式[1]不是很喜歡
對於固定連接當時不了解 想說就用默認的吧
後來因爲安裝了某個插件
導致網頁沒有辦法正常顯示
後來在網上問了一下 被告知說可能是因爲用了默認連接的關係
被這麽說了之後也沒有多想
只是想網頁正常顯示
就在後臺選項中順手選了圖中的一個
/%year%/%monthnum%/%day%/%postname%/

今天問題來了
有一篇去年打的草稿 過了大半年放著沒有繼續寫
然後改了標題和内容想發佈的
發現只能修改post-name 年月日不能更改
yourdomain.com/blog/xxxx/xx/xx/post-name/
爲什麽我去年的草稿到現在還沒有發佈?
爲什麽不直接刪掉重新寫?
記得以前用默認連接的時候是號碼
然後刷掉一片後就會連接不起來
所以現在也不喜歡刷掉原來沒有發佈的底稿
要怎麽樣才可以不被日期左右修改底稿網址呢
只有再次修改固定連接了…
只是到現在還沒有想到要怎麽改
雖然在官方網站[2]看了一下 也有很多方式
%year% 年份
%monthnum% 月份
%day% 日期
%hour% 小時
%minute% 分鐘
%second% 秒鐘
%postname% 文章標題
A sanitized version of the title of the post (post slug field on Edit Post/Page panel). So “This Is A Great Post!” becomes this-is-a-great-post in the URI (see Using only %postname%). Starting Permalinks with %postname% is strongly not recommended for performance reasons..%post_id% 文章號碼
The unique ID # of the post, for example 423%category% 分類
A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI. Starting Permalinks with %category% is strongly not recommended for performance reasons.%tag% 標簽
A sanitized version of the tag name (tag slug field on New/Edit Tag panel). Starting Permalinks with %tag% is strongly not recommended for performance reasons.%author% 作者名
A sanitized version of the author name.
看了這些還是沒有找到我想要的
原本想用 %author%%postname% 想到我作者名用的是中文
如果這樣用的話會不會顯示一連拴奇怪的數字呢
之前發佈出來的文章沒有修改過的連接都會有一連串奇怪的數字
直接用%postname% –> deepseadoll.com/blog/post-name
在官方網站[3]提到這樣選擇的話可能導致網頁出現問題
建議在%postname%的前面用數字
%year% 年份
%monthnum% 月份
%day% 日期
%hour% 時間
%minute% 分鐘
%second% 秒鐘
%post_id% 作者ID
上面的這些都是數字形的 只是還是覺得很奇怪
如果用分類%category% 顯示應該也有亂七八糟的數字
誰叫我把分類用了中文沒有改呢
繼續google吧 找到想要的答案 就改儸
- yourdomain.com/?p=[↩]
- Using Permalinks[↩]
- Using only postname[↩]
0 Response to “wordpress permalink 固定連接”