我要删除类别& WordPress URL中的标记库.我遇到了其他使用插件的帖子和解决方案.我想远离插件,并从functions.php内部获得解决方案.这样可以防止将来更改任何插件更新或WordPress默认文件.
I would like to remove the category & tag base from WordPress URL. I have come across other posts and solutions which used plugins. I would like to stay away from plugins and have a solution from within functions.php. This would prevent any future plugin updates or WordPress default files from being changed.
任何帮助将不胜感激.谢谢!
Any help would be appreciated. Thanks!
到目前为止,我已经尝试了以下解决方案:
I have tried these solutions so far:
- 此htaccess解决方案无效: mikepayne.co/2011/remove-category-base-from-url/
- 这些方法也失败了: www.askapache/wordpress/remove-category-wordpress-urls.html
- This htaccess solution did not work: mikepayne.co/2011/remove-category-base-from-url/
- These methods also failed: www.askapache/wordpress/remove-category-wordpress-urls.html
如果要从网址中删除/category/,请执行以下两个步骤:
If you want to remove /category/ from the url, follow these two steps:
保存它,您将看到URL更改为以下格式: yourblog/quotes/
Save it and you’ll see your URL changed to this format: yourblog/quotes/
(来源: premium.wpmudev/blog/daily-tip-quick-trick-to-remove-category-from-wordpress-url/)
更多推荐
删除类别和来自WordPress网址的标记库
发布评论