分享

wordpress下永久链接自定义格式说明 | 睿言睿行

 昵称8256371 2012-03-05

wordpress下永久链接自定义格式说明

 

登录到wordpress后台,“设置”→“永久链接”。
在“自定义结构”中填写永久链接的格式。
样式:http://www./category/post-name.html
写法: /%category%/%postname%.html

样式:http://www./123.html
写法:/%post_id%.html

样式:hhttp://www./archives/123.html
写法:/archives/%post_id%.html

样式:http://www./2007/09/16/post-name.html
写法:/%year%/%monthnum%/%day%/%postname%.html

样式:http://www./2007/03/post-name.html
写法:/%year%/%monthnum%/%postname%.html

样式:http://www./archives/post-name.html

写法:/archive/%postname%.html

样式:http://www./post-name.html
写法:/%postname%.html
说明:
%year% 日志发布的年,4位数字,如:2004

%monthnum% 日志发布的月份,2位数字,如:05

%day% 日志发布当月的第几天,2位数字,如:28

%hour% 日志发布时间中的“小时”,2位数字,如:15

%minute% 日志发布时间中的“分钟”,2位数字,如:43

%second% 日志发布时间中的“秒”,2位数字,如:33

%postname% 一串处理过的日志标题。如,日志标题为“This Is A Great Post!”,那么%postname%表示为“this-is-a-great-post”

%post_id% 日志的唯一编号

%category% 日志所在的分类

%author% 日志的作者

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多