免插件实现WordPress去掉分类链接中category目录-WordPress主题

摘要:对于wordpress的链接优化除了伪静态之外另一个广为流传的是wordpress去掉分类链接中自带的category目…

对于wordpress的链接优化除了伪静态之外另一个广为流传的是wordpress去掉分类链接中自带的category目录;虽然是老生常谈了,但是在这里讲一下也不为过;网上有各种去除category目录的的免费插件,WP No category Base 插件就不错。但是插件毕竟不安全,

大挖推荐大家一个不用插件来实现WordPress去掉分类链接中category的方法,将下面代码添加到你当前主题的 functions.php 文件中的<?内即可:

来源:http://www.wazhuti.com/540.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13260.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?