這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Remove Taxonomy Base Slug

外掛說明

If you would like to have a little more nice permalinks to your custom post types articles with custom permalinks – this plugin can help you with this.
If the term has the same slug as the post type, then the taxonomy has the priority over the post type.

Now I will show some examples:

(Custom taxonomy:)

From:

site.com/taxonomy/cars

To:

site.com/cars

(Custom taxonomy with child taxonomies)

From:

site.com/taxonomy/cars/bmw

To:

site.com/cars/bmw

(Term slug is the same as the post type slug:)

From:

(Post Type:) site.com/cars/
(Term from Taxonomy:) site.com/taxonomy/cars/
(Subterm from Taxonomy:) site.com/taxonomy/cars/bmw

To:

(Post Type:) site.com/cars/ (will not show)
(Term from Taxonomy:) site.com/cars (will show)
(Subterm from Taxonomy:) site.com/cars/bmw (will show)

安裝方式

  1. Unzip
  2. Upload “remove-taxonomy-base-slug” folder to the “/wp-content/plugins/” directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Select which taxonomies base slug to remove, go to Plugins -> Remove Taxonomy Base Slug
  5. Update your permalinks, go to Settings -> Permalinks -> Save Changes
  6. That’s it!

常見問題集

Installation Instructions
  1. Unzip
  2. Upload “remove-taxonomy-base-slug” folder to the “/wp-content/plugins/” directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Select which taxonomies base slug to remove, go to Plugins -> Remove Taxonomy Base Slug
  5. Update your permalinks, go to Settings -> Permalinks -> Save Changes
  6. That’s it!
Why should I use this plugin?

Use this plugin if you want to get rid of a custom taxonomy base slug completely.
The normal behaviour of WordPress is to add ‘/taxonomy’ to your permalinks if you leave “taxonomy page” blank (ex: site.com/taxonomy/).
So your taxonomy links look like “site.com/taxonomy/my-taxonomy/”.
With this plugin your taxonomy links will look like “site.com/my-taxonomy/” (or “site.com/my-taxonomy/sub-taxonomy/” in case of child taxonomies).

Will it break any other plugins?

I don’t think so.

Won’t this conflict with pages or post types?

Simply don’t have a page or a post type and category with the same slug.
Even if they do have the same slug it won’t break anything.
Priority will be for taxonomies.

Can you add a feature X?

Depends, if its useful enough and I have time for it.

使用者評論

2017 年 9 月 19 日
the plugin has not been updated for a long time, but it still works fine. Thanks
2016 年 9 月 3 日
I was trying to find from a long time and this plugin just fixed my issue’s in no time. Thank you for making such a great plugin.
閱讀全部 23 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Remove Taxonomy Base Slug〉的開發相關工作。

參與者

將〈Remove Taxonomy Base Slug〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.1

  • Fixed a little bug.
  • Added Multisite support.

2.0

  • Fixed: A bug in PHP 5.4 + some other bugs
  • Added: Admin Panel with the list of all taxonomies.

1.2

  • Fixed: Auto update permalinks after adding new terms.

1.1

  • Fixed a bug with hierarchical terms.

1.0.1

  • Some small bug fixes.

1.0

  • First release.