开发者 |
valeriosza
studiopioneer |
---|---|
更新时间 | 2020年1月27日 18:30 |
PHP版本: | 3.1 及以上 |
WordPress版本: | 5.2.2 |
版权: | GPLv2 |
mydomain.com/category/my-category/
to mydomain.com/my-category/
).
No configuration is required
Features
mydomain.com/my-category/
and mydomain.com/my-category/my-post/
.remove-category-url.zip
to the /wp-content/plugins/
directory.Use this plugin if you want to get rid of WordPress' "Category base" completely. The normal behaviour of WordPress is to add '/category' to your category permalinks if you leave "/category" blank in the Permalink settings. So your category links look like mydomain.com/category/my-category/
. With this plugin your category links will look like mydomain.com/my-category/
(or mydomain.com/my-category/sub-category/
in case of sub categories).
As far as I can tell, no. I have been using this on several blogs for a while and it doesn't break anything.
Simply don't have a page and category with the same slug. Even if they do have the same slug it won't break anything, just the category will get priority (Say if a category and page are both 'xyz' then mydomain.com/xyz/
will give you the category). This can have an useful side-effect. Suppose you have a category 'news', you can add a page 'news' which will show up in the page navigation but will show the 'news' category.
A particular installation does not allow the rewrite feature in disabling the plugin. Try after disabling the plugin, save permanent links again.