Linux 软件免费装
Banner图

No Category Base (WPML)

开发者 mines.io
digitalme
mariosalexandrou
digitalmeactivecampaign
ympno
更新时间 2025年11月8日 05:24
捐献地址: 去捐款
PHP版本: 5.0 及以上
WordPress版本: 6.8.1
版权: GPLv2 or later

标签

category base category slug category url category permalinks

下载

1.1.0 1.4

详情介绍:

As the name suggests this plugin will completely remove the mandatory 'Category Base' from your category permalinks ( e.g. 'mysite.com/category/my-category/' to 'mysite.com/my-category/' ). The plugin requires no setup or modifying core wordpress files and will not break any links. It will also take care of redirecting your old category links to the new ones. Features
  1. Better and logical permalinks like 'mysite.com/my-category/' and 'mysite.com/my-category/my-post/'.
  2. Simple plugin - barely adds any overhead.
  3. Works out of the box - no setup needed.
  4. No need to modify WordPress files.
  5. Doesn't require other plugins to work.
  6. Compatible with sitemap plugins.
  7. Compatible with WPML.
  8. Works with multiple sub-categories.
  9. Works with WordPress Multisite.
  10. Redirects old category permalinks to the new ones (301 redirect, good for SEO).

安装:

  1. Upload the no-category-base-wpml folder to the '/wp-content/plugins/' directory
  2. 通过 WordPress 的“插件”菜单激活插件
  3. That's it! You should now be able to access your categories via mysite.com/my-category/

常见问题:

Why should I use this plugin?

Use this plugin if you want to get rid of WordPress' "Category base" completely. The normal behavior of WordPress is to add '/category' to your category permalinks if you leave "Category base" blank in the Permalink settings. So your category links look like 'mysite.com/category/my-category/'. With this plugin your category links will look like 'mysite.com/my-category/' (or 'mysite.com/my-category/sub-category/' in case of sub categories).

Will it break any other plugins?

As far as I can tell, no. We have been using this on several sites for a while and it doesn't break anything.

Won't this conflict with pages?

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 'mysite.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.

Do I need WPML to use it?

No, you can use this plugin without having WPML installed.

Can you add a feature X?

Just ask on the support forum. If its useful enough and we have time for it, sure.

I get 404 errors when I deactivate the plugin. What can I do?

When you deactivate the plugin, you need to tell WordPress to refresh its permalink rules. This is easy to do. Go to Settings -> Permalinks and then click on Save Changes.

更新日志:

1.4 1.3 1.2 1.1.5 1.1.0 1.0.0